diff options
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/lcd-h100-remote.c | 2 | ||||
-rw-r--r-- | firmware/drivers/lcd-h100.c | 2 | ||||
-rw-r--r-- | firmware/drivers/lcd-recorder.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/lcd-h100-remote.c b/firmware/drivers/lcd-h100-remote.c index 3edb27c155..bdc5799726 100644 --- a/firmware/drivers/lcd-h100-remote.c +++ b/firmware/drivers/lcd-h100-remote.c @@ -558,7 +558,7 @@ void lcd_remote_clear_display(void) /* Set a single pixel */ void lcd_remote_drawpixel(int x, int y) { - if (((unsigned)x < LCD_REMOTE_WIDTH) || ((unsigned)y < LCD_REMOTE_HEIGHT)) + if (((unsigned)x < LCD_REMOTE_WIDTH) && ((unsigned)y < LCD_REMOTE_HEIGHT)) lcd_remote_pixelfuncs[drawmode](x, y); } diff --git a/firmware/drivers/lcd-h100.c b/firmware/drivers/lcd-h100.c index 93988f6c74..929a4fa301 100644 --- a/firmware/drivers/lcd-h100.c +++ b/firmware/drivers/lcd-h100.c @@ -397,7 +397,7 @@ void lcd_clear_display(void) /* Set a single pixel */ void lcd_drawpixel(int x, int y) { - if (((unsigned)x < LCD_WIDTH) || ((unsigned)y < LCD_HEIGHT)) + if (((unsigned)x < LCD_WIDTH) && ((unsigned)y < LCD_HEIGHT)) lcd_pixelfuncs[drawmode](x, y); } 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) /* Set a single pixel */ void lcd_drawpixel(int x, int y) { - if (((unsigned)x < LCD_WIDTH) || ((unsigned)y < LCD_HEIGHT)) + if (((unsigned)x < LCD_WIDTH) && ((unsigned)y < LCD_HEIGHT)) lcd_pixelfuncs[drawmode](x, y); } |