fix(color): Lua vertical font alignment corrections (#2371)
This commit is contained in:
@@ -39,7 +39,7 @@ static int8_t getTextHorizontalOffset(LcdFlags flags)
|
|||||||
if (font_index >= sizeof(text_horizontal_offset)) {
|
if (font_index >= sizeof(text_horizontal_offset)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return text_horizontal_offset[font_index];
|
return 0;//text_horizontal_offset[font_index];
|
||||||
}
|
}
|
||||||
|
|
||||||
static int8_t getTextVerticalOffset(LcdFlags flags)
|
static int8_t getTextVerticalOffset(LcdFlags flags)
|
||||||
|
|||||||
@@ -36,10 +36,10 @@
|
|||||||
constexpr coord_t INVERT_BOX_MARGIN = 2;
|
constexpr coord_t INVERT_BOX_MARGIN = 2;
|
||||||
|
|
||||||
constexpr int8_t text_horizontal_offset[7] {-2,-1,-2,-2,-2,-2,-2};
|
constexpr int8_t text_horizontal_offset[7] {-2,-1,-2,-2,-2,-2,-2};
|
||||||
constexpr int8_t text_vertical_offset[7] {2,2,0,2,3,3,7};
|
constexpr int8_t text_vertical_offset[7] {0,0,0,0,0,-1,7};
|
||||||
|
|
||||||
extern bool luaLcdAllowed;
|
extern bool luaLcdAllowed;
|
||||||
extern BitmapBuffer * luaLcdBuffer;
|
extern BitmapBuffer * luaLcdBuffer;
|
||||||
extern Widget * runningFS;
|
extern Widget * runningFS;
|
||||||
|
|
||||||
LcdFlags flagsRGB(LcdFlags flags);
|
LcdFlags flagsRGB(LcdFlags flags);
|
||||||
|
|||||||
Reference in New Issue
Block a user