diff options
-rw-r--r-- | firmware/drivers/lcd-bitmap-common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/drivers/lcd-bitmap-common.c b/firmware/drivers/lcd-bitmap-common.c index 30c8a396b5..3495e04964 100644 --- a/firmware/drivers/lcd-bitmap-common.c +++ b/firmware/drivers/lcd-bitmap-common.c | |||
@@ -98,6 +98,8 @@ static void LCDFN(putsxyofs)(int x, int y, int ofs, const unsigned char *str) | |||
98 | if (vp_flags & VP_FLAG_ALIGN_CENTER) | 98 | if (vp_flags & VP_FLAG_ALIGN_CENTER) |
99 | { | 99 | { |
100 | x = ((current_vp->width - w)/ 2) + x; | 100 | x = ((current_vp->width - w)/ 2) + x; |
101 | if (x < 0) | ||
102 | x = 0; | ||
101 | } | 103 | } |
102 | else | 104 | else |
103 | { | 105 | { |