[hatari-devel] Issue with switching - fullscreen/windowed mode
npomarede at corp.free.fr
npomarede at corp.free.fr
Tue Feb 9 23:48:33 CET 2010
On Wed, 10 Feb 2010, Eero Tamminen wrote:
> Hi,
>
> Another possibility is to tell the display not to offer any other than
> the native LCD resolution[1]. Then Hatari will just keep using what ever
> integer scaling it already used and just tell SDL to use that resolution.
> This will give the black borders on fullscreen, but pixels are crisp.
>
> [1] One has always had that possibility with X server configuration.
Yes, on linux we can add some "modeline" lines into xorg.conf, but if
your monitor is 1920x1024, not doing any scaling and adding some black
borders will certainly give some crisp pixels, but a very small display
area, and a rather poor user experience in the end.
And I'm not sure it will solve possible problems under windows or osx,
where the SDL port can be the cause of some limitation (due to lack of
interest/maintenance) we don't see under linux.
> Even SDL itself may offer this, I haven't looked into it.
Don't know either.
> This will require support both from video.c and falcon/hostscreen.c and
> rewrite of at least the hostscreen.c fullscreen toggling function (but
> latter should apparently anyway be rewritten).
Why ? I thought doing it screen.c would be enough. On the contrary, I
think this should be independant to the processing done in
video.c/hostscreen.c ; some modifications could be made to toggle
fullscreen in a more generic way but this should mainly call a function in
screen.c
video.c has no idea of what display size is used : it "outputs" some
pixels in Atari's format (interlaced planar) and the screen.c/convert.c
transform these pixels into an SDL_Surface "sdlscrn".
We would just need to optionnally transform sdlscrn into sdlscrn2 and
display sdlscrn2 instead of sdlscrn for this to work.
Nicolas
More information about the hatari-devel
mailing list