summaryrefslogtreecommitdiff
path: root/src/plot/8bpp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plot/8bpp.c')
-rw-r--r--src/plot/8bpp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plot/8bpp.c b/src/plot/8bpp.c
index 4da9df2..472c213 100644
--- a/src/plot/8bpp.c
+++ b/src/plot/8bpp.c
@@ -452,6 +452,9 @@ bitmap(nsfb_t *nsfb,
int height = loc->y1 - loc->y0;
nsfb_bbox_t clipped; /* clipped display */
+ if (width == 0 || height == 0)
+ return true;
+
/* Scaled bitmaps are handled by a separate function */
if (width != bmp_width || height != bmp_height)
return bitmap_scaled(nsfb, loc, pixel, bmp_width, bmp_height,