From ad6b89bf02c43b208638fd8a1140ebc7f5636602 Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Wed, 14 Feb 2024 15:20:28 -0500 Subject: Fix not being able to quit Have to return value of m_should_quit in SDLDisplay::update_display --- hal/sdl2/display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hal/sdl2/display.cpp b/hal/sdl2/display.cpp index a5cff6a..8947a81 100644 --- a/hal/sdl2/display.cpp +++ b/hal/sdl2/display.cpp @@ -81,7 +81,7 @@ bool SDLDisplay::update_display(const uint8_t* oled_screen) { SDL_RenderCopy(m_renderer, screen_texture, NULL, NULL); SDL_RenderPresent(m_renderer); SDL_DestroyTexture(screen_texture); - return false; + return m_should_quit; } bool SDLDisplay::get_datetime(datetime_t* t) { -- cgit v1.2.3-54-g00ecf