summaryrefslogtreecommitdiff
path: root/src/sna/sna_video_sprite.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-01-07 10:41:26 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2015-01-07 10:41:26 +0000
commit7b7f71a7d522f430e09f02d71eca24474408dc55 (patch)
treeceae46c495ff45fccd275532edb9fafff0a7cddf /src/sna/sna_video_sprite.c
parent362d455947701dcb8ce4a01100282e56821be401 (diff)
sna/video: Reuse fallback colorkey filler from overlay for sprites
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.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/sna/sna_video_sprite.c b/src/sna/sna_video_sprite.c
index 92230f97..9ce98798 100644
--- a/src/sna/sna_video_sprite.c
+++ b/src/sna/sna_video_sprite.c
@@ -527,14 +527,7 @@ off:
goto err;
}
- if (!video->AlwaysOnTop && !RegionEqual(&video->clip, &clip) &&
- sna_blt_fill_boxes(sna, GXcopy,
- __sna_pixmap_get_bo(sna->front),
- sna->front->drawable.bitsPerPixel,
- video->color_key,
- region_rects(&clip),
- region_num_rects(&clip)))
- RegionCopy(&video->clip, &clip);
+ sna_video_fill_colorkey(video, &clip);
sna_window_set_port((WindowPtr)draw, port);
return Success;