diff options
author | Brian Paul <[email protected]> | 2001-03-08 15:23:46 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2001-03-08 15:23:46 +0000 |
commit | 01915e90e6912f06d43d443a09157f7bbc96ddc5 (patch) | |
tree | fc86ff76a45027c01d45902bed894d12f161088c /src/mesa/drivers/x11/xm_api.c | |
parent | eac57f009ea347cfce0d70452c1bdeb0e6c9eeae (diff) |
More g++ warning fixes. Fixes for CHAN_BITS==16, it seems to work.
Diffstat (limited to 'src/mesa/drivers/x11/xm_api.c')
-rw-r--r-- | src/mesa/drivers/x11/xm_api.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/drivers/x11/xm_api.c b/src/mesa/drivers/x11/xm_api.c index 8e1bd87517e..abbec2d7dd1 100644 --- a/src/mesa/drivers/x11/xm_api.c +++ b/src/mesa/drivers/x11/xm_api.c @@ -1,4 +1,4 @@ -/* $Id: xm_api.c,v 1.17 2001/03/03 20:33:30 brianp Exp $ */ +/* $Id: xm_api.c,v 1.18 2001/03/08 15:23:46 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -2237,7 +2237,8 @@ GLboolean XMesaSetFXmode( GLint mode ) static void FXgetImage( XMesaBuffer b ) { static unsigned short pixbuf[MAX_WIDTH]; - int x, y; + GLuint x, y; + int xpos, ypos; XMesaWindow root; unsigned int bw, depth, width, height; XMesaContext xmesa = (XMesaContext) b->xm_context->gl_ctx->DriverCtx; @@ -2252,7 +2253,7 @@ static void FXgetImage( XMesaBuffer b ) depth = b->frontbuffer->depth; #else XGetGeometry( xmesa->xm_visual->display, b->frontbuffer, - &root, &x, &y, &width, &height, &bw, &depth); + &root, &xpos, &ypos, &width, &height, &bw, &depth); #endif if (b->width != width || b->height != height) { b->width = MIN2((int)width, xmesa->xm_buffer->FXctx->width); |