Remove secondFrameBuffer and instead add set_framebuffer method

This commit is contained in:
Patrick Horlebein
2020-04-06 17:38:24 +02:00
parent 81abd5eeac
commit ec6140317c
3 changed files with 18 additions and 19 deletions

View File

@@ -825,7 +825,8 @@ void gui_Menu(const menuitem *menu) {
ButtonState lastButtonState = BUTTON_NONE;
if (menu[currentScreen].draw.func != NULL) {
OLED::use_second_buffer();
uint8_t secondFrameBuffer[OLED_WIDTH * 2];
OLED::set_framebuffer(secondFrameBuffer);
OLED::setFont(0);
OLED::setCursor(0, 0);
OLED::clearScreen();