diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-01-06 16:22:54 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-01-06 18:23:16 +0000 |
commit | a40ad7ded44e8331ccd9a6d477a2f1716baf6d16 (patch) | |
tree | 6469fef7a7d4133850adb1cd3fb3cff894433a5d | |
parent | c3ead57feba757ac633f0bc142dd1300cc6c7037 (diff) |
gdi: Fix warning.
-rw-r--r-- | src/gallium/winsys/gdi/gdi_softpipe_winsys.c | 2 |
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 e66ce48f2d..cb74b54742 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; |