BlitterStudio / amiberry

Optimized Amiga emulator for Linux/macOS
https://amiberry.com
GNU General Public License v3.0
661 stars 89 forks source link

KMSDRM: Odd screen handling when toggling between GUI/emulation windows #1411

Closed giantclambake closed 2 months ago

giantclambake commented 2 months ago

RPi4/bookworm/KMSDRM ~ evident in Master & Preview

To recreate;

At the console issue the cmd ./amiberry AmigaTestKit.adf

-emulation boots showing the AmigaTestKit GUI fullscreen --> hit F12 to pop GUI, hit F12 again to return to emulation

-- AmigaTestKit GUI reappears, no longer fullscreen with H/V uncentered (looks to be in a different resolution)

--> hit F12 to pop GUI -> Display -> uncheck Correct Aspect Ratio --> hit F12 to resume

-- AmigaTestKit GUI reappears, now fullscreen again -> F12, hit F12 again to return to emulation, AmigaTestKit GUI reappears, no longer fullscreen with H/V uncentered

--> hit F12 to pop GUI -> Display -> check Correct Aspect Ratio --> hit F12 to resume

-- AmigaTestKit GUI reappears, now fullscreen again -> F12, hit F12 again to return to emulation, AmigaTestKit GUI reappears, no longer fullscreen with H/V uncentered

...wash, rinse, repeat ;)

TIA

midwan commented 2 months ago

I noticed that after the fix yesterday, but didn't have time to look into it further. It's a side-effect of using a single window, as I don't modify the window if it's already there (so it will use whatever last settings it had).

giantclambake commented 2 months ago

Ahh, ok...that explains it ~ it's not actually Correct Aspect Ratio perse, it's more the case that enabling/disabling that option, prompts the code to re-evaluate the desired window settings...or such'n'similar.

midwan commented 2 months ago

Should be fixed now, at least according to my tests :)