Skip to content

Commit

Permalink
bugfix: Fixed bug under KMSDRM, where the emulation screen would not …
Browse files Browse the repository at this point in the history
…show (#1401)

Under KMSDRM, if you started Amiberry from the command line with the -G parameter, and you entered the GUI once, resuming would not show the emulation screen.
  • Loading branch information
midwan committed Aug 25, 2024
1 parent d4b2c6a commit c58114a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/osdep/amiberry_gfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,13 @@ static void SDL2_init()
mon->currentmode.freq = sdl_mode.refresh_rate;
}

// If KMSDRM is detected, force Full-Window mode
if (kmsdrm_detected)
{
currprefs.gfx_apmode[APMODE_NATIVE].gfx_fullscreen = changed_prefs.gfx_apmode[APMODE_NATIVE].gfx_fullscreen = GFX_FULLWINDOW;
currprefs.gfx_apmode[APMODE_RTG].gfx_fullscreen = changed_prefs.gfx_apmode[APMODE_RTG].gfx_fullscreen = GFX_FULLWINDOW;
}

if (!mon->amiga_window)
{
write_log("Creating Amiberry window...\n");
Expand Down

0 comments on commit c58114a

Please sign in to comment.