]> git.cworth.org Git - apitrace/commitdiff
glretrace: Fix currentDrawable size book-keeping on WGL.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 22 May 2013 15:24:04 +0000 (16:24 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 22 May 2013 15:24:04 +0000 (16:24 +0100)
Width/height was being tampered by the window size adjustments.

retrace/glws_wgl.cpp

index de6c7d6b546161fe4c1968cb1f3305632cb1dee9..9244b799d4ae2566bc5ee7fd92577be40c47a6e9 100644 (file)
@@ -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) {