From 21cb0c74548334694d6900fca25dae6874b99b0e Mon Sep 17 00:00:00 2001 From: Tectu Date: Thu, 28 Jun 2012 12:03:29 +0200 Subject: [PATCH] compiler error fix --- glcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glcd.c b/glcd.c index 2c6b3bba..cdeedee0 100644 --- a/glcd.c +++ b/glcd.c @@ -281,7 +281,7 @@ void lcdDrawRectString(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, const uint16_t off_left, off_up; off_left = ((x1-x0)-lcdMeasureString(str, font))/2; - off_up = ((y1-y0) - lcdGetCurFontHeight()) / 2; + off_up = ((y1-y0) - lcdGetFontHeight(font)) / 2; lcdDrawRect(x0, y0, x1, y1, 1, bkColor); /* Abhishek: default to solid text for this? */