diff options
-rw-r--r-- | video/out/w32_common.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/video/out/w32_common.c b/video/out/w32_common.c index d5ec8ee04b..c52406de4e 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -1727,8 +1727,8 @@ static int gui_thread_control(struct vo_w32_state *w32, int request, void *arg) return VO_FALSE; RECT *rc = w32->current_fs ? &w32->prev_windowrc : &w32->windowrc; - s[0] = rect_w(*rc); - s[1] = rect_h(*rc); + s[0] = rect_w(*rc) / w32->dpi_scale; + s[1] = rect_h(*rc) / w32->dpi_scale; return VO_TRUE; } case VOCTRL_SET_UNFS_WINDOW_SIZE: { @@ -1737,6 +1737,9 @@ static int gui_thread_control(struct vo_w32_state *w32, int request, void *arg) if (!w32->window_bounds_initialized) return VO_FALSE; + s[0] *= w32->dpi_scale; + s[1] *= w32->dpi_scale; + RECT *rc = w32->current_fs ? &w32->prev_windowrc : &w32->windowrc; const int x = rc->left + rect_w(*rc) / 2 - s[0] / 2; const int y = rc->top + rect_h(*rc) / 2 - s[1] / 2; |