Skip to content

Commit

Permalink
Fixes content scale on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
domstoppable committed Oct 10, 2024
1 parent 8aebf1c commit 70c931c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pupil_src/launchables/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ def on_resize(window, w, h):
g_pool.ui_render_size = w - int(icon_bar_width * g_pool.gui.scale), h

renderable_space = [
int(w - max(-g_pool.menubar.configuration['pos'][0], g_pool.menubar.configuration['min_size'][0] + 10)),
int(h - max(-g_pool.user_timelines.configuration['pos'][1], g_pool.user_timelines.configuration['min_size'][1]) - 15),
int(w - g_pool.gui.scale * max(-g_pool.menubar.configuration['pos'][0], g_pool.menubar.configuration['min_size'][0] + 10)),
int(h - g_pool.gui.scale * max(-g_pool.user_timelines.configuration['pos'][1], g_pool.user_timelines.configuration['min_size'][1]) - 15),
]
g_pool.camera_render_rect = center_and_scale(g_pool.capture.frame_size, renderable_space)

Expand Down

0 comments on commit 70c931c

Please sign in to comment.