framebuffer things
This commit is contained in:
@@ -34,6 +34,9 @@ typedef rgb888_pixel_t pixel_t;
|
||||
(((r & 0xFF) << 16) | ((g & 0xFF) << 8) | (b & 0xFF))
|
||||
#endif // PIXEL_FORMAT_888
|
||||
|
||||
extern volatile pixel_t framebuffer[DISPLAY_HEIGHT * DISPLAY_WIDTH];
|
||||
extern volatile pixel_t *current_framebuffer;
|
||||
extern volatile pixel_t *next_framebuffer;
|
||||
|
||||
void swap_framebuffers(void);
|
||||
|
||||
#endif
|
||||
@@ -45,7 +45,7 @@ void draw_menu(volatile pixel_t *const framebuffer, const graphical_menu_t *cons
|
||||
void partial_redraw_menu(volatile pixel_t *const framebuffer, graphical_menu_t *const menu, uint8_t old_highlighted_entry_idx, uint8_t new_highlighted_entry_idx);
|
||||
void select_menu_entry(graphical_menu_t *const menu);
|
||||
void set_selected_menu_entry_idx(volatile pixel_t *const framebuffer, graphical_menu_t *const menu, uint8_t idx);
|
||||
void decrement_selected_menu_entry_idx(graphical_menu_t *const menu);
|
||||
void increment_selected_menu_entry_idx(graphical_menu_t *const menu);
|
||||
void decrement_selected_menu_entry_idx(volatile pixel_t *const framebuffer, graphical_menu_t *const menu);
|
||||
void increment_selected_menu_entry_idx(volatile pixel_t *const framebuffer, graphical_menu_t *const menu);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user