sdl: set initial pitch
authornotaz <notasas@gmail.com>
Sun, 31 Oct 2021 14:36:36 +0000 (16:36 +0200)
committernotaz <notasas@gmail.com>
Sun, 31 Oct 2021 14:36:36 +0000 (16:36 +0200)
plat_sdl.c

index ab606bb..db39bf2 100644 (file)
@@ -231,6 +231,7 @@ int plat_sdl_init(void)
   }
   g_menuscreen_w = window_w = plat_sdl_screen->w;
   g_menuscreen_h = window_h = plat_sdl_screen->h;
+  g_menuscreen_pp = g_menuscreen_w;
 
   // overlay/gl require native bpp in some cases..
   plat_sdl_screen = SDL_SetVideoMode(g_menuscreen_w, g_menuscreen_h,