From df70a067d5c902389f3192f2f8292cadf3ddc5ae Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 9 Jan 2016 05:45:06 +0100 Subject: [PATCH] Move this down --- gfx/d3d/d3d.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/gfx/d3d/d3d.cpp b/gfx/d3d/d3d.cpp index 39f45a5f25..739612a834 100644 --- a/gfx/d3d/d3d.cpp +++ b/gfx/d3d/d3d.cpp @@ -988,11 +988,6 @@ static bool d3d_construct(d3d_video_t *d3d, #else gfx_ctx_get_video_size(&full_x, &full_y); #endif - { - unsigned new_width = info->fullscreen ? full_x : info->width; - unsigned new_height = info->fullscreen ? full_y : info->height; - video_driver_set_size(&new_width, &new_height); - } #ifdef HAVE_WINDOW DWORD style; @@ -1010,6 +1005,13 @@ static bool d3d_construct(d3d_video_t *d3d, windowed_full, &rect); #endif + if (!info->fullscreen) + { + full_x = info->width; + full_y = info->height; + } + video_driver_set_size(&full_x, &full_y); + #ifdef HAVE_SHADERS /* This should only be done once here * to avoid set_shader() to be overridden