summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2014-02-28 13:01:59 -0500
committerZhigang Gong <zhigang.gong@gmail.com>2014-03-13 21:52:17 +0800
commit577a30abf7a02ec4cb8bdc1e0280b3d66d6f5132 (patch)
treed5175c76abae295867f153d677cc86d9019aaea8
parent49b88d62fef1ded7acb7f6aee4c59f8e7e7fe2a4 (diff)
glamor: yInverted is a boolean value, so use the Bool type.
Ported from Eric's xserver glamor tree. Signed-off-by: Eric Anholt <eric@anholt.net> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--src/glamor.c4
-rw-r--r--src/glamor_priv.h2
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;