From 8b26b033e3709d820996a23008435632fa7922bf Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Thu, 15 Jun 2023 22:24:07 +0300 Subject: [PATCH] dos: forgot to reshape at least once, to allocate the framebuffer --- src/dos/main.c | 2 ++ src/modern/main.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dos/main.c b/src/dos/main.c index ad64f4c..a11de39 100644 --- a/src/dos/main.c +++ b/src/dos/main.c @@ -79,6 +79,8 @@ int main(int argc, char **argv) } disp_pending = 1; + app_reshape(win_width, win_height); + for(;;) { int key; while((key = kb_getkey()) != -1) { diff --git a/src/modern/main.c b/src/modern/main.c index 1af9e85..65b5eed 100644 --- a/src/modern/main.c +++ b/src/modern/main.c @@ -237,7 +237,7 @@ static int translate_skey(int key) case GLUT_KEY_PAGE_UP: return KEY_PGUP; case GLUT_KEY_PAGE_DOWN: - return KEY_PGDOWN; + return KEY_PGDN; case GLUT_KEY_HOME: return KEY_HOME; case GLUT_KEY_END: -- 1.7.10.4