projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19641a9
)
gdi: Fix warning.
author
José Fonseca
<jfonseca@vmware.com>
Tue, 6 Jan 2009 16:22:54 +0000
(16:22 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Thu, 8 Jan 2009 12:05:17 +0000
(12:05 +0000)
src/gallium/winsys/gdi/gdi_softpipe_winsys.c
patch
|
blob
|
history
diff --git
a/src/gallium/winsys/gdi/gdi_softpipe_winsys.c
b/src/gallium/winsys/gdi/gdi_softpipe_winsys.c
index e66ce48f2dca18d04c8ade083dd67bce6dde2a84..cb74b54742aee39a31b7d5d1cba885f117084b34 100644
(file)
--- 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;