New the BLINK fields do blink
This commit is contained in:
committed by
Raphael Coeffic
parent
9bcd15e49d
commit
4656921dea
@@ -22,7 +22,7 @@
|
|||||||
#include "view_main.h"
|
#include "view_main.h"
|
||||||
#include "lua/lua_api.h"
|
#include "lua/lua_api.h"
|
||||||
|
|
||||||
constexpr uint32_t STANDALONE_LUA_REFRESH = 1000 / 1; // 1Hz
|
constexpr uint32_t STANDALONE_LUA_REFRESH = 1000 / 5; // 5Hz
|
||||||
|
|
||||||
uint16_t* lcdGetBackupBuffer();
|
uint16_t* lcdGetBackupBuffer();
|
||||||
|
|
||||||
|
|||||||
@@ -203,9 +203,9 @@ static int luaLcdDrawText(lua_State *L)
|
|||||||
const char * s = luaL_checkstring(L, 3);
|
const char * s = luaL_checkstring(L, 3);
|
||||||
unsigned int att = luaL_optunsigned(L, 4, 0);
|
unsigned int att = luaL_optunsigned(L, 4, 0);
|
||||||
|
|
||||||
bool invers = (att & INVERS) && !();
|
|
||||||
bool blink = att & INVERS;
|
|
||||||
bool shadowed = att & SHADOWED;
|
bool shadowed = att & SHADOWED;
|
||||||
|
bool invers = (att & INVERS);
|
||||||
|
if (att & BLINK) invers = invers && !(BLINK_ON_PHASE);
|
||||||
|
|
||||||
// from here on, we need only the color
|
// from here on, we need only the color
|
||||||
att = (att & 0xFFFF) | COLOR(COLOR_VAL(att));
|
att = (att & 0xFFFF) | COLOR(COLOR_VAL(att));
|
||||||
|
|||||||
Reference in New Issue
Block a user