diff options
Diffstat (limited to 'apps/plugins/lib/xlcd_draw.c')
-rw-r--r-- | apps/plugins/lib/xlcd_draw.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/lib/xlcd_draw.c b/apps/plugins/lib/xlcd_draw.c index 0bd1c7a9e2..debdff6f04 100644 --- a/apps/plugins/lib/xlcd_draw.c +++ b/apps/plugins/lib/xlcd_draw.c | |||
@@ -356,10 +356,10 @@ void xlcd_gray_bitmap_part(const unsigned char *src, int src_x, int src_y, | |||
356 | fb_data *dst; | 356 | fb_data *dst; |
357 | 357 | ||
358 | /* nothing to draw? */ | 358 | /* nothing to draw? */ |
359 | if ((width <= 0) || (height <= 0) || (x >= LCD_WIDTH) || (y >= LCD_HEIGHT) | 359 | if ((width <= 0) || (height <= 0) || (x >= LCD_WIDTH) || (y >= LCD_HEIGHT) |
360 | || (x + width <= 0) || (y + height <= 0)) | 360 | || (x + width <= 0) || (y + height <= 0)) |
361 | return; | 361 | return; |
362 | 362 | ||
363 | /* clipping */ | 363 | /* clipping */ |
364 | if (x < 0) | 364 | if (x < 0) |
365 | { | 365 | { |
@@ -426,10 +426,10 @@ void xlcd_color_bitmap_part(const unsigned char *src, int src_x, int src_y, | |||
426 | fb_data *dst; | 426 | fb_data *dst; |
427 | 427 | ||
428 | /* nothing to draw? */ | 428 | /* nothing to draw? */ |
429 | if ((width <= 0) || (height <= 0) || (x >= LCD_WIDTH) || (y >= LCD_HEIGHT) | 429 | if ((width <= 0) || (height <= 0) || (x >= LCD_WIDTH) || (y >= LCD_HEIGHT) |
430 | || (x + width <= 0) || (y + height <= 0)) | 430 | || (x + width <= 0) || (y + height <= 0)) |
431 | return; | 431 | return; |
432 | 432 | ||
433 | /* clipping */ | 433 | /* clipping */ |
434 | if (x < 0) | 434 | if (x < 0) |
435 | { | 435 | { |