dos: forgot to reshape at least once, to allocate the framebuffer
authorJohn Tsiombikas <nuclear@member.fsf.org>
Thu, 15 Jun 2023 19:24:07 +0000 (22:24 +0300)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Thu, 15 Jun 2023 19:24:07 +0000 (22:24 +0300)
src/dos/main.c
src/modern/main.c

index ad64f4c..a11de39 100644 (file)
@@ -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) {
index 1af9e85..65b5eed 100644 (file)
@@ -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: