static somme variables

This commit is contained in:
Gwenhael Le Moine 2024-04-17 16:42:56 +02:00
parent 0310ca343a
commit 4da3f29bd8
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -11,21 +11,22 @@ byte display_line_count;
byte display_height; byte display_height;
byte display_offset; byte display_offset;
bool display_enable; bool display_enable;
bool shouldRender = false;
byte lcdScreen[ LCD_WIDTH * LCD_HEIGHT ];
byte prev_lcdScreen[ LCD_WIDTH * LCD_HEIGHT ];
byte prev2_lcdScreen[ LCD_WIDTH * LCD_HEIGHT ];
byte lcdScreenGS[ LCD_WIDTH * LCD_HEIGHT ]; byte lcdScreenGS[ LCD_WIDTH * LCD_HEIGHT ];
static byte lcdScreen[ LCD_WIDTH * LCD_HEIGHT ];
static byte prev_lcdScreen[ LCD_WIDTH * LCD_HEIGHT ];
static byte prev2_lcdScreen[ LCD_WIDTH * LCD_HEIGHT ];
static address cur_adr; static address cur_adr;
static bool in_menu; static bool in_menu;
static byte off_line; static byte off_line;
static int off_cnt; static int off_cnt;
bool shouldRender = false;
static int screen_draw_count = 0; static int screen_draw_count = 0;
static bool drawGS = false; static bool drawGS = false;
static address draw_lcd_line( address adr, int y ) static inline address draw_lcd_line( address adr, int y )
{ {
int bit = 0; int bit = 0;
byte data = 0; // Initialized to remove warning byte data = 0; // Initialized to remove warning