tiny rename
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 8 Oct 2021 03:49:04 +0000 (22:49 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 8 Oct 2021 03:49:04 +0000 (22:49 -0500)
src/app/editor.onyx
src/app/settings.onyx
src/features/hex_editor/hex_viewer.onyx

index 34dbebd6fe270da72b6f51a1d263e2a86436d9d4..b7533c54379842554abc88caac87c7d3c083218c 100644 (file)
@@ -12,12 +12,12 @@ Slider_Int    :: struct { min, max: i32; }
 Slider_Float  :: struct { min, max: f32; }
 Ignore_Option :: struct { option: str; }
 
-modify_window_draw :: (obj: any, win: ^app.Application_Window, site := #callsite) {
+editor_window_draw :: (obj: any, win: ^app.Application_Window, site := #callsite) {
     rect := win.window_state->get_internal_rectangle(); 
 
     hash := ui.get_site_hash(site);
     __counter = hash;
-    
+
     handle := ui.scrollable_region_start(rect, increment=hash, .{
         minimum_x = 0, maximum_x = 0,
         minimum_y = 0, maximum_y = 100000.0f,
index 765ade4e9369db979b0fb670a9fd630ccb0c4358..f70efd1c5760d78a540aeee6d873e497a25fda5b 100644 (file)
@@ -73,7 +73,7 @@ settings_window_show :: () {
 
 #private_file
 settings_window_draw :: (_, win) => {
-    editor.modify_window_draw(^state.settings, win);
+    editor.editor_window_draw(^state.settings, win);
 
     button_theme := ui.default_button_theme;
     button_theme.border_width = 0;
index 2931707a354a05f33c26fa0b6106010969016d2d..523cd0819a59e2c273bdc18cf1f14e526441f905 100644 (file)
@@ -151,7 +151,7 @@ open_window :: () {
     app.focus_window(window_id);
 
     app.open_window("dummy", "DUMMY TESTING", .{ 0, 0 },
-        (_, win) => { (package editor).modify_window_draw(hex_window, win); });
+        (_, win) => { (package editor).editor_window_draw(hex_window, win); });
 }
 
 setup :: () {