summaryrefslogtreecommitdiff
path: root/src/sna/sna_render_inline.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-11-07 20:07:37 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-11-07 20:10:27 +0000
commitb1234f3d3a27f326b8048e3d6b476021a26e9101 (patch)
treec9d4847a5a0a1061bd793d77e43b74ae523fd6f3 /src/sna/sna_render_inline.h
parentafdf931e61821985b31b339d1f346ddd7c4e9e3c (diff)
sna: Expand multiplies of two 16-bit values to a full 32-bit range
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_render_inline.h')
-rw-r--r--src/sna/sna_render_inline.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_render_inline.h b/src/sna/sna_render_inline.h
index 8ad755c1..91aa7e4e 100644
--- a/src/sna/sna_render_inline.h
+++ b/src/sna/sna_render_inline.h
@@ -90,7 +90,7 @@ is_dirty_gpu(DrawablePtr drawable)
static inline Bool
too_small(DrawablePtr drawable)
{
- return (drawable->width * drawable->height * drawable->bitsPerPixel <= 8*4096) &&
+ return ((uint32_t)drawable->width * drawable->height * drawable->bitsPerPixel <= 8*4096) &&
!is_dirty_gpu(drawable);
}