[Glamor] [PATCH 04/34] glamor: yInverted is a boolean value, so use the Bool type.
Alex Deucher
alexdeucher at gmail.com
Fri Feb 28 10:01:59 PST 2014
From: Eric Anholt <eric at anholt.net>
Ported from Eric's xserver glamor tree.
Signed-off-by: Eric Anholt <eric at anholt.net>
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
src/glamor.c | 4 ++--
src/glamor_priv.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/glamor.c b/src/glamor.c
index 4a2f5ad..24cbbf4 100644
--- a/src/glamor.c
+++ b/src/glamor.c
@@ -284,9 +284,9 @@ 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)) {
diff --git a/src/glamor_priv.h b/src/glamor_priv.h
index 7b8f762..65a02f4 100644
--- a/src/glamor_priv.h
+++ b/src/glamor_priv.h
@@ -243,7 +243,7 @@ struct glamor_saved_procs {
typedef struct glamor_screen_private {
struct glamor_gl_dispatch _dispatch;
- int yInverted;
+ Bool yInverted;
unsigned int tick;
enum glamor_gl_flavor gl_flavor;
int has_pack_invert;
--
1.8.3.1
More information about the Glamor
mailing list