preparation for retrofw and legacy opendingux support

This commit is contained in:
kub 2021-02-21 20:36:42 +01:00
parent b1b5f9c094
commit b053cb2044
5 changed files with 29 additions and 11 deletions

View file

@ -164,7 +164,7 @@ void plat_video_menu_enter(int is_rom_loaded)
{
if (SDL_MUSTLOCK(plat_sdl_screen))
SDL_UnlockSurface(plat_sdl_screen);
plat_sdl_change_video_mode(g_menuscreen_w, g_menuscreen_h, 0);
plat_sdl_change_video_mode(g_menuscreen_w, g_menuscreen_h, 1);
g_screen_ptr = shadow_fb;
plat_video_set_buffer(g_screen_ptr);
}
@ -212,22 +212,22 @@ void plat_video_menu_leave(void)
void plat_video_loop_prepare(void)
{
if (plat_sdl_overlay != NULL || plat_sdl_gl_active) {
g_screen_ptr = shadow_fb;
g_screen_width = 320;
g_screen_height = 240;
g_screen_ppitch = g_screen_width;
plat_sdl_change_video_mode(g_screen_width, g_screen_height, 0);
g_screen_ptr = shadow_fb;
}
else {
if (SDL_MUSTLOCK(plat_sdl_screen))
SDL_LockSurface(plat_sdl_screen);
g_screen_ptr = plat_sdl_screen->pixels;
g_screen_width = g_menuscreen_w;
g_screen_height = g_menuscreen_h;
g_screen_ppitch = g_menuscreen_pp;
plat_sdl_change_video_mode(g_screen_width, g_screen_height, 0);
if (SDL_MUSTLOCK(plat_sdl_screen))
SDL_LockSurface(plat_sdl_screen);
g_screen_ptr = plat_sdl_screen->pixels;
}
plat_video_set_buffer(g_screen_ptr);
plat_sdl_change_video_mode(g_screen_width, g_screen_height, 0);
}
void plat_early_init(void)

View file

@ -0,0 +1,4 @@
#! /bin/sh
echo 0 > /proc/sys/kernel/printk
./PicoDrive "$@"
sync

View file

@ -0,0 +1,12 @@
[Desktop Entry]
Name=Picodrive
Comment=A megadrive/genesis emulator
Exec=PicoDrive %f
Icon=megadrive
Categories=games;
X-OD-Manual=
X-OD-Selector=
X-OD-Filter=.md,.smd,.bin,.sms,.cue,.32x,.zip,.7z
Terminal=true
Type=Application
StartupNotify=true