Fix #70036: Fixed animation playback scaling issue on retina displays
Authored by Apple: James McCarthy Pull Request: https://projects.blender.org/blender/blender/pulls/122048
This commit is contained in:
parent
25c1614f40
commit
1cf8f64927
@ -287,8 +287,11 @@ static void print_ps(PlayState *ps)
|
||||
static void playanim_window_get_size(GHOST_WindowHandle ghost_window, int *r_width, int *r_height)
|
||||
{
|
||||
GHOST_RectangleHandle bounds = GHOST_GetClientBounds(ghost_window);
|
||||
*r_width = GHOST_GetWidthRectangle(bounds);
|
||||
*r_height = GHOST_GetHeightRectangle(bounds);
|
||||
float native_pixel_size = GHOST_GetNativePixelSize(ghost_window);
|
||||
|
||||
*r_width = GHOST_GetWidthRectangle(bounds) * native_pixel_size;
|
||||
*r_height = GHOST_GetHeightRectangle(bounds) * native_pixel_size;
|
||||
|
||||
GHOST_DisposeRectangle(bounds);
|
||||
}
|
||||
|
||||
@ -1847,6 +1850,8 @@ static bool wm_main_playanim_intern(int argc, const char **argv, PlayArgs *args_
|
||||
|
||||
GHOST_AddEventConsumer(ps.ghost_data.system, ghost_event_consumer);
|
||||
|
||||
GHOST_UseNativePixels();
|
||||
|
||||
ps.ghost_data.window = playanim_window_open(ps.ghost_data.system,
|
||||
"Blender Animation Player",
|
||||
window_pos[0],
|
||||
|
Loading…
Reference in New Issue
Block a user