[hatari-devel] Hostscreen path -
Konador, Cyprian
cyprian.konador at hp.com
Sat Feb 27 03:26:08 CET 2010
Hi All,
sometimes ago I requested two issues - screen's anticlockwise rotation and switching - fullscreen/windowed mode.
Attached you can find the patch for both issues.
First issue:
Desktop in VGA mode 320x240 and TV 320x212 (200 + statusbar) was anticlockwise rotated in fullscreen.
I found out that function HostScreen_selectVideoMode for both requested resolutions, returned 384x512 for LCD, or 480x640. Both modes are displayed as anticlockwise rotated.
I've just added condition that width can't be smaller than height.
Second issue:
is related to first one. Desktop in VGA mode 320x240 and TV 320x212 in fullscreen is 384x512 for LCD.
When I go back to windowed mode, screen height was restored properly, but width stay at 384px.
I've defined new variable screenwidth (similar to screenheight)
What you are you thinking about adding it into current release?
On my configuration Win XP SDL version 1.2.13 and 1.2.14 there is no resolution 320x240 and 400x300. Interesting, isn't it?
Below you can find all available video modes used in HostScreen_selectVideoMode
TV:
modes[0]: width: 1024 height: 768
modes[1]: width: 800 height: 600
modes[2]: width: 720 height: 576
modes[3]: width: 720 height: 480
modes[4]: width: 640 height: 480
modes[5]: width: 576 height: 720
modes[6]: width: 480 height: 720
modes[7]: width: 480 height: 640
LCD:
modes[0]: width: 1280 height: 800
modes[1]: width: 1024 height: 768
modes[2]: width: 800 height: 600
modes[3]: width: 640 height: 480
modes[4]: width: 640 height: 400
modes[5]: width: 600 height: 800
modes[6]: width: 512 height: 384
modes[7]: width: 480 height: 640
modes[8]: width: 400 height: 640
modes[9]: width: 384 height: 512
modes[10]: width: 320 height: 200
modes[11]: width: 200 height: 320
Regards
Cyprian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hostscreen.diff
Type: application/octet-stream
Size: 1815 bytes
Desc: hostscreen.diff
URL: <https://lists.berlios.de/pipermail/hatari-devel/attachments/20100227/55fb6f0c/attachment.obj>
More information about the hatari-devel
mailing list