diff options
Diffstat (limited to 'screen_ui.cpp')
-rw-r--r-- | screen_ui.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp index ff9591514..e699538c7 100644 --- a/screen_ui.cpp +++ b/screen_ui.cpp @@ -37,6 +37,12 @@ #include "minui/minui.h" #include "screen_ui.h" #include "ui.h" +extern "C" { +#include "minuitwrp/minui.h" +int twgr_text(int x, int y, const char *s); +#include "gui/gui.h" +} +#include "data.hpp" static int char_width; static int char_height; @@ -303,6 +309,7 @@ void ScreenRecoveryUI::update_screen_locked() { // Updates only the progress bar, if possible, otherwise redraws the screen. // Should only be called with updateMutex locked. + void ScreenRecoveryUI::update_progress_locked() { if (show_text || !pagesIdentical) { draw_screen_locked(); // Must redraw the whole screen @@ -513,6 +520,9 @@ void ScreenRecoveryUI::Print(const char *fmt, ...) { vsnprintf(buf, 256, fmt, ap); va_end(ap); + gui_print("%s", buf); + return; + fputs(buf, stdout); pthread_mutex_lock(&updateMutex); |