summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/gui/scrollbar.c8
-rw-r--r--firmware/export/config-mrobe500.h2
2 files changed, 9 insertions, 1 deletions
diff --git a/apps/gui/scrollbar.c b/apps/gui/scrollbar.c
index 0cb3602d11..8a0b885c4b 100644
--- a/apps/gui/scrollbar.c
+++ b/apps/gui/scrollbar.c
@@ -92,6 +92,14 @@ void gui_scrollbar_draw(struct screen * screen, int x, int y,
92 inner_y = y + 1; 92 inner_y = y + 1;
93 inner_wd = width - 2; 93 inner_wd = width - 2;
94 inner_ht = height - 2; 94 inner_ht = height - 2;
95
96 /* Boundary check to make sure that height is reasonable, otherwise nothing
97 * to do
98 */
99 if(height<2 || width<2)
100 {
101 return;
102 }
95 103
96 if (flags & HORIZONTAL) 104 if (flags & HORIZONTAL)
97 inner_len = inner_wd; 105 inner_len = inner_wd;
diff --git a/firmware/export/config-mrobe500.h b/firmware/export/config-mrobe500.h
index 4010b036d1..29c2670f9e 100644
--- a/firmware/export/config-mrobe500.h
+++ b/firmware/export/config-mrobe500.h
@@ -91,7 +91,7 @@
91/* remote LCD */ 91/* remote LCD */
92#define HAVE_REMOTE_LCD 92#define HAVE_REMOTE_LCD
93#define LCD_REMOTE_WIDTH 79 93#define LCD_REMOTE_WIDTH 79
94#define LCD_REMOTE_HEIGHT 64 94#define LCD_REMOTE_HEIGHT 16
95#define LCD_REMOTE_DEPTH 1 95#define LCD_REMOTE_DEPTH 1
96 96
97/* Remote display colours, for screenshots and sim (0xRRGGBB) */ 97/* Remote display colours, for screenshots and sim (0xRRGGBB) */