feat(core): add reset state on display clear on model R. Added to rest of the models as noop.

pull/2263/head
tychovrahe 2 years ago committed by matejcik
parent 58041036f5
commit bd476769cc

@ -89,6 +89,8 @@ void PIXELDATA(uint16_t c) {
}
}
static void display_reset_state() {}
void PIXELDATA_DIRTY() { pixeldata_dirty = true; }
static void display_set_window(uint16_t x0, uint16_t y0, uint16_t x1,

@ -91,6 +91,8 @@ static uint32_t display_identify(void) {
return id;
}
static void display_reset_state() {}
static void __attribute__((unused)) display_sleep(void) {
uint32_t id = display_identify();
if ((id == DISPLAY_ID_ILI9341V) || (id == DISPLAY_ID_GC9307) ||

@ -98,6 +98,8 @@ void PIXELDATA(uint16_t c) {
}
}
static void display_reset_state() {}
void display_init_seq(void) {}
void display_deinit(void) {

@ -158,6 +158,9 @@ static inline void clamp_coords(int x, int y, int w, int h, int *x0, int *y0,
void display_clear(void) {
const int saved_orientation = DISPLAY_ORIENTATION;
display_reset_state();
// set MADCTL first so that we can set the window correctly next
display_orientation(0);
// address the complete frame memory

Loading…
Cancel
Save