From e97037295931cbb2dec94e645fbc13f3031de99d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 23 Nov 2015 13:02:02 +0100 Subject: [PATCH] (D3D) Buildfix --- gfx/d3d/d3d.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gfx/d3d/d3d.cpp b/gfx/d3d/d3d.cpp index c5e3f20da2..77518825a3 100644 --- a/gfx/d3d/d3d.cpp +++ b/gfx/d3d/d3d.cpp @@ -597,9 +597,11 @@ static bool d3d_construct(d3d_video_t *d3d, #else gfx_ctx_get_video_size(d3d, &full_x, &full_y); #endif - video_driver_set_size( - info->fullscreen ? &full_x : &info->width, - info->fullscreen ? &full_y : &info->height); + { + 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); + } #ifndef _XBOX #ifdef HAVE_WINDOW