From: José Fonseca <jfonseca@vmware.com>
Date: Wed, 22 May 2013 15:24:04 +0000 (+0100)
Subject: glretrace: Fix currentDrawable size book-keeping on WGL.
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=87f7e0e2377ee766b7fd295640bcd551cf887c1f;p=apitrace

glretrace: Fix currentDrawable size book-keeping on WGL.

Width/height was being tampered by the window size adjustments.
---

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) {