[hatari-devel] Suggestion about small additions for v1.4
Eero Tamminen
oak at helsinkinet.fi
Mon Feb 28 22:09:31 CET 2011
Hi,
On keskiviikko 12 toukokuu 2010, Eero Tamminen wrote:
>> Yes, that's why the technicque of changing resolution is flawed to
>> begin with. Fullscreen should use the _current_ resolution without any
>> change and scale the graphics accordingly.
>
> Hm. After some googling, an API seems to have been added to SDL
> in v1.2.10 to get the current resolution:
> http://www.libsdl.org/cgi/docwiki.cgi/SDL_VideoInfo
I had earlier added support for limiting any resolution request to
desktop size.
Attached is a patch to make fullscreen mode always use the current desktop
resolution for Falcon & TT resolutions[1]. It's enabled by giving Hatari
a "--desktop" command line option.
Does it do what you were looking after?
[1] ST & STE mode screen handling doesn't have scaling with arbitrary
integer factor, just doubling, so doing that for those too wouldn't
look very nice. I don't thing it's a problem though as ST/STE demos
don't by themselves cause Hatari resolution changes like Falcon demos
do.
(When I had it enabled also for non-fullscreen mode and did couple of
fullscreen switches, SDL somehow managed to mess up my Linux desktop so
badly that I had to kill the whole session to see anything else than black.
Doing it just for fullscreen would seem to work fine though.)
- Eero
PS. I'm now using an LCD monitor too and they indeed are bloody slow
at changing resolutions, so this started to be a more interesting issue...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: desktop-resolution.diff
Type: text/x-patch
Size: 5116 bytes
Desc: not available
URL: <https://lists.berlios.de/pipermail/hatari-devel/attachments/20110228/27083f1d/attachment.bin>
More information about the hatari-devel
mailing list