[PATCH 03/15] glamor: yInverted is a boolean value, so use the Bool type.

Eric Anholt eric at anholt.net
Mon Feb 3 11:03:28 PST 2014


Signed-off-by: Eric Anholt <eric at anholt.net>
---
 glamor/glamor.c      | 4 ++--
 glamor/glamor_priv.h | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/glamor/glamor.c b/glamor/glamor.c
index f1c71ea..ba2a1f4 100644
--- a/glamor/glamor.c
+++ b/glamor/glamor.c
@@ -308,10 +308,10 @@ glamor_init(ScreenPtr screen, unsigned int flags)
         return FALSE;
 
     if (flags & GLAMOR_INVERTED_Y_AXIS) {
-        glamor_priv->yInverted = 1;
+        glamor_priv->yInverted = TRUE;
     }
     else
-        glamor_priv->yInverted = 0;
+        glamor_priv->yInverted = FALSE;
 
     if (!dixRegisterPrivateKey(glamor_screen_private_key, PRIVATE_SCREEN, 0)) {
         LogMessage(X_WARNING,
diff --git a/glamor/glamor_priv.h b/glamor/glamor_priv.h
index f2bc002..53af353 100644
--- a/glamor/glamor_priv.h
+++ b/glamor/glamor_priv.h
@@ -215,7 +215,7 @@ struct glamor_saved_procs {
 #define RENDER_IDEL_MAX 32
 
 typedef struct glamor_screen_private {
-    int yInverted;
+    Bool yInverted;
     unsigned int tick;
     enum glamor_gl_flavor gl_flavor;
     int has_pack_invert;
-- 
1.9.rc1



More information about the xorg-devel mailing list