summaryrefslogtreecommitdiff
path: root/src/sna/sna.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-07-19 14:10:02 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-07-19 14:21:45 +0100
commit4aa0288f16f03723a7aaa30967809d10fdb15a27 (patch)
tree1695ef70f6fcee09ec1d3a10c017d27de49e803c /src/sna/sna.h
parent6921abd81017c9ed7f3b2413784068fbc609a0ea (diff)
sna: Return true from get_drawable_deltas() if the pixmap is offset
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna.h')
-rw-r--r--src/sna/sna.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h
index 249d57cb..d0d2de4f 100644
--- a/src/sna/sna.h
+++ b/src/sna/sna.h
@@ -408,17 +408,18 @@ CARD32 sna_render_format_for_depth(int depth);
void sna_debug_flush(struct sna *sna);
-static inline void
+static inline bool
get_drawable_deltas(DrawablePtr drawable, PixmapPtr pixmap, int16_t *x, int16_t *y)
{
#ifdef COMPOSITE
if (drawable->type == DRAWABLE_WINDOW) {
*x = -pixmap->screen_x;
*y = -pixmap->screen_y;
- return;
+ return pixmap->screen_x | pixmap->screen_y;
}
#endif
*x = *y = 0;
+ return false;
}
static inline int