summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/windows
diff options
context:
space:
mode:
authorKarl Schultz <kschultz@freedesktop.org>2005-12-16 16:38:44 +0000
committerKarl Schultz <kschultz@freedesktop.org>2005-12-16 16:38:44 +0000
commit782291ab916dcb3f11fe8b7c934b1fd164c46020 (patch)
tree2edd7b8bb4ff5f52951af7ecc50784d90502258d /src/mesa/drivers/windows
parent924fb5e916ae107df52181643927305ec4435255 (diff)
fix thinko in last revision.
Diffstat (limited to 'src/mesa/drivers/windows')
-rw-r--r--src/mesa/drivers/windows/gdi/wmesa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/windows/gdi/wmesa.c b/src/mesa/drivers/windows/gdi/wmesa.c
index 09da82e6db..982366be42 100644
--- a/src/mesa/drivers/windows/gdi/wmesa.c
+++ b/src/mesa/drivers/windows/gdi/wmesa.c
@@ -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