LCD Inversion finished by MMX

This commit is contained in:
Dmitry422
2025-04-09 23:37:30 +07:00
parent 4ec8f21e09
commit 224d4e060b
7 changed files with 37 additions and 17 deletions

View File

@@ -355,11 +355,11 @@ static void lcd_inverse_changed(VariableItem* item) {
variable_item_set_current_value_text(item, lcd_inverse_text[index]);
app->notification->settings.lcd_inverse = lcd_inverse_value[index];
//setup global variable for using in canvas.c
lcd_inverted = lcd_inverse_value[index];
Canvas* tmp_canvas = gui_direct_draw_acquire(app->gui);
canvas_set_inverted_lcd(tmp_canvas, lcd_inverse_value[index]);
gui_direct_draw_release(app->gui);
notification_message(app->notification, &sequence_display_backlight_on);
}
//--- RGB BACKLIGHT ---