From ed4caa243718b54dcee1e04887d3a003079a7043 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Thu, 7 Oct 2021 22:49:04 -0500 Subject: [PATCH] tiny rename --- src/app/editor.onyx | 4 ++-- src/app/settings.onyx | 2 +- src/features/hex_editor/hex_viewer.onyx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/editor.onyx b/src/app/editor.onyx index 34dbebd..b7533c5 100644 --- a/src/app/editor.onyx +++ b/src/app/editor.onyx @@ -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, diff --git a/src/app/settings.onyx b/src/app/settings.onyx index 765ade4..f70efd1 100644 --- a/src/app/settings.onyx +++ b/src/app/settings.onyx @@ -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; diff --git a/src/features/hex_editor/hex_viewer.onyx b/src/features/hex_editor/hex_viewer.onyx index 2931707..523cd08 100644 --- a/src/features/hex_editor/hex_viewer.onyx +++ b/src/features/hex_editor/hex_viewer.onyx @@ -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 :: () { -- 2.25.1