gdi: Fix warning.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 6 Jan 2009 16:22:54 +0000 (16:22 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 6 Jan 2009 18:23:16 +0000 (18:23 +0000)
src/gallium/winsys/gdi/gdi_softpipe_winsys.c

index e66ce48f2dca18d04c8ade083dd67bce6dde2a84..cb74b54742aee39a31b7d5d1cba885f117084b34 100644 (file)
@@ -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;