From b951c84e014c0896146e584ebeea4b2b6c7ec8d1 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 24 Apr 2017 12:23:09 +0200 Subject: [PATCH] Cut down on another video_driver_set_size call --- gfx/drivers/d3d.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gfx/drivers/d3d.cpp b/gfx/drivers/d3d.cpp index c833ab8255..850b7dbcd9 100644 --- a/gfx/drivers/d3d.cpp +++ b/gfx/drivers/d3d.cpp @@ -1042,7 +1042,9 @@ static bool d3d_construct(d3d_video_t *d3d, { 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); + + video->real_width = new_width; + video->real_height = new_height; } #ifdef HAVE_WINDOW