fix thinko in last revision.
authorKarl Schultz <kschultz@freedesktop.org>
Fri, 16 Dec 2005 16:38:44 +0000 (16:38 +0000)
committerKarl Schultz <kschultz@freedesktop.org>
Fri, 16 Dec 2005 16:38:44 +0000 (16:38 +0000)
src/mesa/drivers/windows/gdi/wmesa.c

index 09da82e..982366b 100644 (file)
@@ -1171,7 +1171,7 @@ void WMesaMakeCurrent(WMesaContext c)
        if (WindowFromDC(c->hDC)) {
            GetClientRect(WindowFromDC(c->hDC), &rect);
            c->width = rect.right - rect.left;
-           c->height = rect.top = rect.bottom;
+           c->height = rect.bottom - rect.top;
        }
        else { /* Memory context */
            /* From contributed code - use the size of the desktop