chore(color): improvements to Lua API (#6846)

This commit is contained in:
philmoz
2025-12-05 11:47:25 +10:00
committed by GitHub
parent cf5ab821ee
commit b57f735945
6 changed files with 493 additions and 138 deletions
@@ -58,13 +58,16 @@ class Window;
#if LANDSCAPE
#if LCD_W == 320
#define LAYOUT_SCALE(x) (((x) * 8 + 5) / 10)
#define LUA_LCD_SCALE 0.8
#elif LCD_W == 800
#define LAYOUT_SCALE(x) (((x) * 11 + 4) / 8)
#define LUA_LCD_SCALE 1.375
#endif
#endif
#if !defined(LAYOUT_SCALE)
#define LAYOUT_SCALE(x) (x)
#define LUA_LCD_SCALE 1.0
#endif
// Macros for setting up layout values
@@ -26,6 +26,8 @@
#define INVERS 0x01u
#define BLINK 0x1000u
#define TIMEHOUR 0x2000u
#define VTOP 0x00u
#define VBOTTOM 0x200u
/* drawText flags */
#define LEFT 0x00u /* align left */