wip : trying to fix the workspace view bounds detection

This commit is contained in:
2024-06-25 02:38:08 -04:00
parent 1f4d07727e
commit 1fe741034d
9 changed files with 59 additions and 25 deletions

View File

@ -506,12 +506,13 @@ ui_top_ancestor :: #force_inline proc "contextless" ( box : ^UI_Box ) -> (^UI_Bo
ui_view_bounds :: #force_inline proc "contextless" () -> (range : Range2) {
using state := get_state();
if ui_context == & screen_ui {
return screen_get_bounds()
}
else {
// if ui_context == & screen_ui {
// return screen_get_bounds()
// }
// else {
return view_get_bounds()
}
// }
}
ui_context :: #force_inline proc() -> ^UI_State { return get_state().ui_context }