Per discussion on Discord
https://discord.com/channels/839849772864503828/842693696629899274/894878085210574889
This commit is contained in:
committed by
Peter Feerick
parent
f970ab1e66
commit
b316a11bba
@@ -210,7 +210,7 @@ static void drawString(lua_State *L, const char * s, LcdFlags flags)
|
||||
|
||||
// apply text offsets, needed to align 2.4.x to 2.3.x font baselines
|
||||
x += getTextHorizontalOffset(flags);
|
||||
y += getTextVerticalOffset(flags) - INVERT_BOX_MARGIN;
|
||||
y += getTextVerticalOffset(flags);
|
||||
|
||||
bool invers = flags & INVERS;
|
||||
if (flags & BLINK)
|
||||
@@ -234,7 +234,7 @@ static void drawString(lua_State *L, const char * s, LcdFlags flags)
|
||||
if (flags & RIGHT)
|
||||
ix -= width;
|
||||
width += 2 * INVERT_BOX_MARGIN;
|
||||
luaLcdBuffer->drawSolidFilledRect(ix, y, width, height, color);
|
||||
luaLcdBuffer->drawSolidFilledRect(ix, y - INVERT_BOX_MARGIN, width, height, color);
|
||||
} else {
|
||||
if ((flags & BLINK) && !BLINK_ON_PHASE)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user