summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/lcd-recorder.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/drivers/lcd-recorder.c b/firmware/drivers/lcd-recorder.c
index a5d8900f5d..25497723ba 100644
--- a/firmware/drivers/lcd-recorder.c
+++ b/firmware/drivers/lcd-recorder.c
@@ -244,8 +244,10 @@ int lcd_getstringsize(unsigned char *str, int *w, int *h)
244 /* get proportional width and glyph bits*/ 244 /* get proportional width and glyph bits*/
245 width += pf->width? pf->width[ch]: pf->maxwidth; 245 width += pf->width? pf->width[ch]: pf->maxwidth;
246 } 246 }
247 *w = width; 247 if ( w )
248 *h = pf->height; 248 *w = width;
249 if ( h )
250 *h = pf->height;
249 251
250 return width; 252 return width;
251} 253}