diff options
Diffstat (limited to 'framebuffer/fb_16bpp_plotters.c')
-rw-r--r-- | framebuffer/fb_16bpp_plotters.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/framebuffer/fb_16bpp_plotters.c b/framebuffer/fb_16bpp_plotters.c index 1faa66e61..78d7cc2aa 100644 --- a/framebuffer/fb_16bpp_plotters.c +++ b/framebuffer/fb_16bpp_plotters.c @@ -66,7 +66,8 @@ static bool fb_16bpp_line(int x0, int y0, int x1, int y1, int width, if (y0 == y1) { /* horizontal line special cased */ - fb_plotters_clip_rect_ctx(&x0, &y0, &x1, &y1); + if (!fb_plotters_clip_rect_ctx(&x0, &y0, &x1, &y1)) + return true; /* line outside clipping */ /*LOG(("horiz: %d, %d, %d, %d, %d, 0x%lx, %d, %d", x0,y0,x1,y1,width,c,dotted,dashed));*/ |