Mesa (master): winsys/xlib: use Bool type for shm field
Brian Paul
brianp at kemper.freedesktop.org
Fri Oct 22 01:56:17 UTC 2010
Module: Mesa
Branch: master
Commit: 4d24f01cb38bbf5d7a47786a1586f8a77360d2d9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4d24f01cb38bbf5d7a47786a1586f8a77360d2d9
Author: Brian Paul <brianp at vmware.com>
Date: Thu Oct 21 19:37:11 2010 -0600
winsys/xlib: use Bool type for shm field
---
src/gallium/winsys/sw/xlib/xlib_sw_winsys.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c b/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c
index 4ed3251..003fa62 100644
--- a/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c
+++ b/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c
@@ -75,7 +75,7 @@ struct xm_displaytarget
Drawable drawable;
XShmSegmentInfo shminfo;
- int shm;
+ Bool shm; /** Using shared memory images? */
};
@@ -165,7 +165,7 @@ alloc_shm_ximage(struct xm_displaytarget *xm_dt,
&xm_dt->shminfo,
width, height);
if (xm_dt->tempImage == NULL) {
- xm_dt->shm = 0;
+ xm_dt->shm = False;
return;
}
@@ -182,12 +182,12 @@ alloc_shm_ximage(struct xm_displaytarget *xm_dt,
mesaXErrorFlag = 0;
XDestroyImage(xm_dt->tempImage);
xm_dt->tempImage = NULL;
- xm_dt->shm = 0;
+ xm_dt->shm = False;
(void) XSetErrorHandler(old_handler);
return;
}
- xm_dt->shm = 1;
+ xm_dt->shm = True;
}
@@ -397,7 +397,7 @@ xm_displaytarget_create(struct sw_winsys *winsys,
if (!debug_get_option_xlib_no_shm()) {
xm_dt->data = alloc_shm(xm_dt, size);
if (xm_dt->data) {
- xm_dt->shm = TRUE;
+ xm_dt->shm = True;
}
}
More information about the mesa-commit
mailing list