summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-01-06 16:22:54 +0000
committerJosé Fonseca <[email protected]>2009-01-08 12:05:17 +0000
commite59eb5fc969777ea9590af3710c3ec9373ce043b (patch)
treec914b885e1bcc9665e23799cb9aef8059af856bd /src/gallium/winsys
parent19641a9295f5d14919480124575c6727a0ad79cf (diff)
gdi: Fix warning.
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/gdi/gdi_softpipe_winsys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/gdi/gdi_softpipe_winsys.c b/src/gallium/winsys/gdi/gdi_softpipe_winsys.c
index e66ce48f2dc..cb74b54742a 100644
--- a/src/gallium/winsys/gdi/gdi_softpipe_winsys.c
+++ b/src/gallium/winsys/gdi/gdi_softpipe_winsys.c
@@ -320,7 +320,7 @@ gdi_softpipe_flush_frontbuffer(struct pipe_winsys *winsys,
memset(&bmi, 0, sizeof(BITMAPINFO));
bmi.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
bmi.bmiHeader.biWidth = surface->stride / pf_get_size(surface->format);
- bmi.bmiHeader.biHeight= -surface->height;
+ bmi.bmiHeader.biHeight= -(long)surface->height;
bmi.bmiHeader.biPlanes = 1;
bmi.bmiHeader.biBitCount = pf_get_bits(surface->format);
bmi.bmiHeader.biCompression = BI_RGB;