diff options
Diffstat (limited to 'firmware/drivers/lcd-recorder.c')
-rw-r--r-- | firmware/drivers/lcd-recorder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/lcd-recorder.c b/firmware/drivers/lcd-recorder.c index bec441c689..6747f7fcd3 100644 --- a/firmware/drivers/lcd-recorder.c +++ b/firmware/drivers/lcd-recorder.c | |||
@@ -454,7 +454,7 @@ void lcd_clear_display(void) | |||
454 | /* Set a single pixel */ | 454 | /* Set a single pixel */ |
455 | void lcd_drawpixel(int x, int y) | 455 | void lcd_drawpixel(int x, int y) |
456 | { | 456 | { |
457 | if (((unsigned)x < LCD_WIDTH) || ((unsigned)y < LCD_HEIGHT)) | 457 | if (((unsigned)x < LCD_WIDTH) && ((unsigned)y < LCD_HEIGHT)) |
458 | lcd_pixelfuncs[drawmode](x, y); | 458 | lcd_pixelfuncs[drawmode](x, y); |
459 | } | 459 | } |
460 | 460 | ||