Revert "Move this down"

This reverts commit df70a067d5c902389f3192f2f8292cadf3ddc5ae.
This commit is contained in:
twinaphex 2016-01-09 05:46:54 +01:00
parent df70a067d5
commit a25d2d65f0

View File

@ -988,6 +988,11 @@ 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;
@ -1005,13 +1010,6 @@ 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