Closed dcnieho closed 4 months ago
I am testing with a 1.5.1 wheel i got from your CI, on Windows 11, Python 3.10. Configuring the app to open at hello_imgui.FullScreenMode.full_monitor_work_area doesn't work, the window shows up mostly offscreen (to the top-left).
hello_imgui.FullScreenMode.full_monitor_work_area
test code:
from imgui_bundle import imgui, immapp, hello_imgui def _gui_func(): imgui.text('test') params = hello_imgui.RunnerParams() params.app_window_params.window_geometry.full_screen_mode = hello_imgui.FullScreenMode.full_monitor_work_area #params.app_window_params.window_geometry.position_mode = hello_imgui.WindowPositionMode.monitor_center params.callbacks.show_gui = _gui_func immapp.run(params)
Here some extra info about what happens with a more complicated draw function:
w=-1 def _gui_func(): global w w+=1 imgui.text('test') if w>2: exit(0) win = glfw_utils.glfw_window_hello_imgui() print(hello_imgui.dpi_window_size_factor()) print(glfw.get_window_pos(win)) print(glfw.get_window_size(win))
returns:
2.5 (0, 12) (3840, 2268) 2.5 (-2880, -1689) (3844, 2348) 2.5 (-2880, -1689) (3844, 2348)
I have only one monitor and its work area according to glfw is (0, 0, 3840, 2280)
Nice catch. I will study this, thanks
That was quick, nice!
I am testing with a 1.5.1 wheel i got from your CI, on Windows 11, Python 3.10. Configuring the app to open at
hello_imgui.FullScreenMode.full_monitor_work_area
doesn't work, the window shows up mostly offscreen (to the top-left).test code:
Here some extra info about what happens with a more complicated draw function:
returns:
I have only one monitor and its work area according to glfw is (0, 0, 3840, 2280)