mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-07 14:27:56 +03:00
texthook: explicitly flush stdout every line
This commit is contained in:
@@ -45,6 +45,7 @@ void texthook_character(int page, int c) {
|
||||
void texthook_newline(void) {
|
||||
if (newlines < 2) {
|
||||
putchar('\n');
|
||||
fflush(stdout);
|
||||
newlines++;
|
||||
}
|
||||
}
|
||||
@@ -52,6 +53,7 @@ void texthook_newline(void) {
|
||||
void texthook_nextpage(void) {
|
||||
while (newlines < 2) {
|
||||
putchar('\n');
|
||||
fflush(stdout);
|
||||
newlines++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user