The International Simutrans Forum

Development => Bug Reports => Topic started by: Václav on March 22, 2011, 09:06:45 PM

Title: Start with fullscreen causes crash if started with bad resolution
Post by: Václav on March 22, 2011, 09:06:45 PM
Three days ago I had to change screen because old was getting very close to be KO.

On previous one I used resolution 1152*756 - and had set this resolution in simuconf.tab for fullscreen mode I use. But on new one is set resolution 1360*768.

I forgot to change settings in simuconf.tab - and game crashed immidiately after start.

I don't think this is classical bug - but it is (I hope) useful report.
Title: Re: Start with fullscreen causes crash if started with bad resolution
Post by: prissi on March 22, 2011, 09:15:46 PM
Most likely an error in windows, as illegal resolutions should just not displayed. (If this was GDI version, not SDL.)

However 16 bit support slowly fades out and a lot of driver are buggy there.
Title: Re: Start with fullscreen causes crash if started with bad resolution
Post by: Václav on March 22, 2011, 09:25:52 PM
Thanks.

...oops, I forgot info about PC:
OS: WinXP
Gr. card: HD Radeon 9550
Screen: Phillips 192E2 (previous screen was Phillips Brilliance 107P)
Title: Re: Start with fullscreen causes crash if started with bad resolution
Post by: prissi on March 22, 2011, 09:40:31 PM
GDI or SDL?
Title: Re: Start with fullscreen causes crash if started with bad resolution
Post by: Václav on March 22, 2011, 10:22:30 PM
I use SDL version of Simutrans.
Originally I used GDI version but for some reasons I left it - and when those reasons passed, I had not reason for return.
Title: Re: Start with fullscreen causes crash if started with bad resolution
Post by: prissi on March 23, 2011, 10:23:06 AM
Then this is most likely a bug in SDL, since simutrans just poass the parameters to SDL.
Title: Re: Start with fullscreen causes crash if started with bad resolution
Post by: Václav on March 25, 2011, 08:17:50 PM
May it be ...

I originally used fullscreen with uncommented resolution parameters set on screen - but after last big update (from 4360 to 4369 - with total rewriting of files) I let resolution parameters commented and only enabled fullscreen - and it runs right.