Move this down

This commit is contained in:
twinaphex 2016-01-09 05:45:06 +01:00
parent c774fb2447
commit df70a067d5

View File

@ -988,11 +988,6 @@ static bool d3d_construct(d3d_video_t *d3d,
#else #else
gfx_ctx_get_video_size(&full_x, &full_y); gfx_ctx_get_video_size(&full_x, &full_y);
#endif #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 #ifdef HAVE_WINDOW
DWORD style; DWORD style;
@ -1010,6 +1005,13 @@ static bool d3d_construct(d3d_video_t *d3d,
windowed_full, &rect); windowed_full, &rect);
#endif #endif
if (!info->fullscreen)
{
full_x = info->width;
full_y = info->height;
}
video_driver_set_size(&full_x, &full_y);
#ifdef HAVE_SHADERS #ifdef HAVE_SHADERS
/* This should only be done once here /* This should only be done once here
* to avoid set_shader() to be overridden * to avoid set_shader() to be overridden