diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-13 22:24:51 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-14 09:21:12 +0100 |
commit | ad4786b285074b5bd70b3ad0bea6ec1b77ad6740 (patch) | |
tree | aab0649444e06516357e3f77d69c6e22a4c06d84 /src/sna/sna_video_sprite.c | |
parent | a05c3547bba52288bae872ea672ffe2f4dab2ffa (diff) |
sna: Aim for consistency and use stdbool except for core X APIs
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_video_sprite.c')
-rw-r--r-- | src/sna/sna_video_sprite.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sna/sna_video_sprite.c b/src/sna/sna_video_sprite.c index d0a4808c..87c5845a 100644 --- a/src/sna/sna_video_sprite.c +++ b/src/sna/sna_video_sprite.c @@ -43,7 +43,7 @@ #define IMAGE_MAX_WIDTH 2048 #define IMAGE_MAX_HEIGHT 2048 -#define MAKE_ATOM(a) MakeAtom(a, sizeof(a) - 1, TRUE) +#define MAKE_ATOM(a) MakeAtom(a, sizeof(a) - 1, true) static Atom xvColorKey; @@ -85,7 +85,7 @@ static int sna_video_sprite_set_attr(ScrnInfoPtr scrn, struct sna_video *video = data; if (attribute == xvColorKey) { - video->color_key_changed = TRUE; + video->color_key_changed = true; video->color_key = value; DBG(("COLORKEY = %d\n", value)); } else @@ -167,7 +167,7 @@ update_dst_box_to_crtc_coords(struct sna *sna, xf86CrtcPtr crtc, BoxPtr dstBox) } } -static Bool +static bool sna_video_sprite_show(struct sna *sna, struct sna_video *video, struct sna_video_frame *frame, @@ -199,7 +199,7 @@ sna_video_sprite_show(struct sna *sna, xf86DrvMsg(sna->scrn->scrnIndex, X_ERROR, "failed to update color key\n"); - video->color_key_changed = FALSE; + video->color_key_changed = false; } #endif @@ -406,9 +406,9 @@ XF86VideoAdaptorPtr sna_video_sprite_setup(struct sna *sna, adaptor->PutImage = sna_video_sprite_put_image; adaptor->QueryImageAttributes = sna_video_sprite_query_attrs; - video->textured = FALSE; + video->textured = false; video->color_key = sna_video_sprite_color_key(sna); - video->color_key_changed = TRUE; + video->color_key_changed = true; video->brightness = -19; /* (255/219) * -16 */ video->contrast = 75; /* 255/219 * 64 */ video->saturation = 146; /* 128/112 * 128 */ |