chore(color): improvements to Lua API (#6846)
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user