Previous Thread
Next Thread
Print Thread
Joined: Sep 2003
Posts: 3
C
Junior Member
Junior Member
C Offline
Joined: Sep 2003
Posts: 3
There is a bug with fullscreen. If mame is closed being in fullscreen it doesn't return to the original resolution.

I have been looking the source to fix it, but i'm no sure. Do you have any type of documentation for the source ?

Joined: Mar 2001
Posts: 17,249
Likes: 265
R
Very Senior Member
Very Senior Member
R Offline
Joined: Mar 2001
Posts: 17,249
Likes: 265
I assume you mean on Linux, because I don't see this on the Mac. Anyway, it's not a bug in SDLMAME: it happens with certain combinations of SDL, the xorg 7.x servers, and the NVidia binary drivers. It went away either from an xorg update issued by Fedora or the newest 8762 NV drivers, I don't know which specifically because I applied both at the same time.

Joined: Sep 2003
Posts: 3
C
Junior Member
Junior Member
C Offline
Joined: Sep 2003
Posts: 3
Yes, sorry. I'm on linux, with xorg 7.0 and nvidia binary drivers. Seems that i have that weird combination.

Joined: Mar 2001
Posts: 17,249
Likes: 265
R
Very Senior Member
Very Senior Member
R Offline
Joined: Mar 2001
Posts: 17,249
Likes: 265
Actually, it may yet be a problem on this end. My ancient binary based on 0.93 doesn't do it, but current does. And my WIP NEStopia port (also using SDL) doesn't do it either. I'll bet something isn't getting shut down properly.

Incidentally, on FC5 or other modern distros you can usually restore the right mode by blind-typing 'xrandr -o 0' (that's lowercase O then the number zero). If your focus lands on an xterm/konsole/whatever after MAME exits, that'll usually work, although sometimes I don't get mouse control back.

UPDATE: That wascally Giles no longer calls osd_quit() from the core, so SDL_Quit() is therefore missing too. Yeearrrgh.

ONCE MORE WITH FEELING: Fixes are now up on my blog - both a "test1b" full archive (which in reality only changes src/sdl/sdlmain.c) and a zip with just the changed file.


Moderated by  R. Belmont 

Link Copied to Clipboard
Who's Online Now
3 members (robcfg, 2 invisible), 95 guests, and 0 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,345
Posts122,343
Members5,082
Most Online1,283
Dec 21st, 2022
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Powered by UBB.threads™ PHP Forum Software 8.0.0