summaryrefslogtreecommitdiff
path: root/src/sna/sna_render.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sna/sna_render.c')
-rw-r--r--src/sna/sna_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_render.c b/src/sna/sna_render.c
index 2e29d950..42418368 100644
--- a/src/sna/sna_render.c
+++ b/src/sna/sna_render.c
@@ -1734,7 +1734,7 @@ sna_render_picture_convert(struct sna *sna,
pixmap->drawable.width,
pixmap->drawable.height));
- if (w == 0 || h == 0) {
+ if (w <= 0 || h <= 0) {
DBG(("%s: sample extents lie outside of source, using clear\n",
__FUNCTION__));
return 0;