Skip to content

Commit dc6bcf9

Browse files
jfrickmannpfeerick
authored andcommitted
1 parent 261bbd2 commit dc6bcf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

radio/src/lua/api_colorlcd.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ static void drawString(lua_State *L, const char * s, LcdFlags flags)
209209

210210
// apply text offsets, needed to align 2.4.x to 2.3.x font baselines
211211
x += getTextHorizontalOffset(flags);
212-
y += getTextVerticalOffset(flags) - INVERT_BOX_MARGIN;
212+
y += getTextVerticalOffset(flags);
213213

214214
bool invers = flags & INVERS;
215215
if (flags & BLINK)
@@ -233,7 +233,7 @@ static void drawString(lua_State *L, const char * s, LcdFlags flags)
233233
if (flags & RIGHT)
234234
ix -= width;
235235
width += 2 * INVERT_BOX_MARGIN;
236-
luaLcdBuffer->drawSolidFilledRect(ix, y, width, height, color);
236+
luaLcdBuffer->drawSolidFilledRect(ix, y - INVERT_BOX_MARGIN, width, height, color);
237237
} else {
238238
if ((flags & BLINK) && !BLINK_ON_PHASE)
239239
return;

0 commit comments

Comments
 (0)