framebuffer things
This commit is contained in:
@@ -6,10 +6,10 @@
|
||||
static const uint16_t entry_height = 40;
|
||||
static const uint16_t padding_x = 10;
|
||||
static const uint16_t padding_y = 0;
|
||||
static const pixel_t enabled_text_color = MAKE_PIXEL(0, 0, 0);
|
||||
static const pixel_t enabled_text_color = MAKE_PIXEL(255, 255, 255);
|
||||
static const pixel_t disabled_text_color = MAKE_PIXEL(128, 128, 128);
|
||||
static const pixel_t entry_bg_color = MAKE_PIXEL(255, 255, 255);
|
||||
static const pixel_t highlighted_bg_color = MAKE_PIXEL(0, 0, 0);
|
||||
static const pixel_t entry_bg_color = MAKE_PIXEL(0, 0, 0);
|
||||
static const pixel_t highlighted_bg_color = MAKE_PIXEL(50, 50, 50);
|
||||
static const pixel_t highlighted_text_color = MAKE_PIXEL(255, 255, 0);
|
||||
|
||||
void draw_menu_entry(volatile pixel_t *const framebuffer, const graphical_menu_t *const menu, uint8_t entry_idx)
|
||||
@@ -112,7 +112,7 @@ void set_selected_menu_entry_idx(volatile pixel_t *const framebuffer, graphical_
|
||||
partial_redraw_menu(framebuffer, menu, old_highlighted_entry_idx, idx);
|
||||
}
|
||||
|
||||
void decrement_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)
|
||||
{
|
||||
if (menu->selected_entry_idx == 0)
|
||||
{
|
||||
@@ -122,7 +122,7 @@ void decrement_selected_menu_entry_idx(graphical_menu_t *const menu)
|
||||
set_selected_menu_entry_idx(framebuffer, menu, menu->selected_entry_idx - 1);
|
||||
}
|
||||
|
||||
void increment_selected_menu_entry_idx(graphical_menu_t *const menu)
|
||||
void increment_selected_menu_entry_idx(volatile pixel_t *const framebuffer, graphical_menu_t *const menu)
|
||||
{
|
||||
if (menu->selected_entry_idx == menu->layout->num_entries - 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user