From 87f7e0e2377ee766b7fd295640bcd551cf887c1f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Wed, 22 May 2013 16:24:04 +0100 Subject: [PATCH 1/1] glretrace: Fix currentDrawable size book-keeping on WGL. Width/height was being tampered by the window size adjustments. --- retrace/glws_wgl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/retrace/glws_wgl.cpp b/retrace/glws_wgl.cpp index de6c7d6..9244b79 100644 --- a/retrace/glws_wgl.cpp +++ b/retrace/glws_wgl.cpp @@ -188,14 +188,14 @@ public: return; } + Drawable::resize(w, h); + RECT rClient, rWindow; GetClientRect(hWnd, &rClient); GetWindowRect(hWnd, &rWindow); w += (rWindow.right - rWindow.left) - rClient.right; h += (rWindow.bottom - rWindow.top) - rClient.bottom; SetWindowPos(hWnd, NULL, rWindow.left, rWindow.top, w, h, SWP_NOMOVE); - - Drawable::resize(w, h); } void show(void) { -- 2.43.0