diff options
author | José Fonseca <[email protected]> | 2009-02-18 17:58:42 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-02-19 10:59:13 +0000 |
commit | d98bc1e32470c7b78e8246f1cbcfb96d0fa6338c (patch) | |
tree | 746f03a664f67d733edb421a15bbb19d995ddf83 /src/gallium/winsys/gdi | |
parent | f9ccdbea67eb18f798ee9e81edb845accfbccc76 (diff) |
gdi: Update for texture/surface interface changes.
Diffstat (limited to 'src/gallium/winsys/gdi')
-rw-r--r-- | src/gallium/winsys/gdi/gdi_softpipe_winsys.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/winsys/gdi/gdi_softpipe_winsys.c b/src/gallium/winsys/gdi/gdi_softpipe_winsys.c index 4924dbf26ac..2d961f70878 100644 --- a/src/gallium/winsys/gdi/gdi_softpipe_winsys.c +++ b/src/gallium/winsys/gdi/gdi_softpipe_winsys.c @@ -273,14 +273,17 @@ gdi_softpipe_flush_frontbuffer(struct pipe_screen *screen, struct pipe_surface *surface, HDC hDC) { + struct softpipe_texture *texture; struct gdi_softpipe_buffer *buffer; BITMAPINFO bmi; - buffer = gdi_softpipe_buffer(softpipe_texture(surface->texture)->buffer); + texture = softpipe_texture(surface->texture); + + buffer = gdi_softpipe_buffer(texture->buffer); memset(&bmi, 0, sizeof(BITMAPINFO)); bmi.bmiHeader.biSize = sizeof(BITMAPINFOHEADER); - bmi.bmiHeader.biWidth = surface->stride / pf_get_size(surface->format); + bmi.bmiHeader.biWidth = texture->stride[surface->level] / pf_get_size(surface->format); bmi.bmiHeader.biHeight= -(long)surface->height; bmi.bmiHeader.biPlanes = 1; bmi.bmiHeader.biBitCount = pf_get_bits(surface->format); |