From 5453055135957a5568864e39a0ec509bb4353cfc Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 8 Jan 2016 05:06:12 +0100 Subject: [PATCH] Move resize handling to d3d_alive --- gfx/d3d/d3d.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gfx/d3d/d3d.cpp b/gfx/d3d/d3d.cpp index 98cbfda729..31c6a72502 100644 --- a/gfx/d3d/d3d.cpp +++ b/gfx/d3d/d3d.cpp @@ -493,8 +493,13 @@ static bool d3d_alive(void *data) { if (quit) d3d->quitting = quit; - else if (resize) + + if (resize) + { d3d->should_resize = true; + gfx_ctx_set_resize(temp_width, temp_height); + d3d_restore(curD3D); + } ret = !quit; }