diff options
author | ConfuSomu | 2024-02-14 15:20:28 -0500 |
---|---|---|
committer | ConfuSomu | 2024-02-14 15:20:28 -0500 |
commit | ad6b89bf02c43b208638fd8a1140ebc7f5636602 (patch) | |
tree | a40f22c5bfe90d524b6e4de8edfc26374aa61f35 | |
parent | 29875b53cf74d4e7a4e3e461a12c49c030b5b22c (diff) | |
download | pico-watch-ad6b89bf02c43b208638fd8a1140ebc7f5636602.tar pico-watch-ad6b89bf02c43b208638fd8a1140ebc7f5636602.tar.gz pico-watch-ad6b89bf02c43b208638fd8a1140ebc7f5636602.zip |
Fix not being able to quit
Have to return value of m_should_quit in SDLDisplay::update_display
-rw-r--r-- | hal/sdl2/display.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |