[hatari-devel] Crosscompiling Hatari for GP2X Wiz

Matthias Arndt marndt at asmsoftware.de
Thu Mar 31 18:00:50 CEST 2011


Am Mittwoch, den 30.03.2011, 23:53 +0300 schrieb Eero Tamminen:
> Hi,
> 
> On keskiviikko 30 maaliskuu 2011, Matthias Arndt wrote:
> > Am Mittwoch, den 30.03.2011, 21:33 +0200 schrieb Matthias Arndt:
> > > > > How can I configure Hatari via commandline or the configfile to
> > > > > engage such videomode?
> > > > 
> > > > You cannot specify the flags on the command line currently.
> > > > 
> > > > You can change the flags manually
> > > > in	src/screen.c::Screen_SetResolution().
> > 
> > I think neither HW_SURFACE nor FULLSCREEN changed anything.
> > I get output from  resolution.c
> > 
> > WARNING: invalid desktop size 240x320, defaulting to 832x576!
> 
> You didn't apply my patch?

Not yet but I don't suspect it is a real problem at the moment because I
do get a working green desktop shown by now.

But I will apply the patch later unless you plan to make it a mainstream
commit. In that case I would simply wait for that commit.

> > This is correct as the display in the wiz is actually an upright one
> > with 240x320 resolution with all stuffs drawn rotated by 90 degrees.
> > However the libSDL I link against has a fix that rotates a 320x240
> > surface automatically.
> 
> >From above warning message it can be seen that your SDL thinks the correct
> screen resolution to be 240x320, not 320x240...?

The real resolution IS 240x320 but it is scaled/rotated accordingly if
setup as 320x240 by the libSDL.

All SDL game ports for the Wiz do initialize the screen as 320x240 as
far as I know. My own game quadromania does so - and this works.

> 
> 
> > However, yesterday I had patched resolution.c with the following lines:
> > 
> > 		DesktopWidth = 320;
> > 		DesktopHeight = 240;
> 
> Unless you applied the patch I sent for Anders, Desktop size doesn't affect
> ST/STE resolutions. Only the user specified ones do that.

Even better, esp as the code compiles now.

> 
> 
> > and got the "Video mode not supported" error aswell.
> > I suspect this is not the real culprit :(
> 
> Did you use:
> 	--max-width 320 --max-height 240
> 
> options?


Not yet, but I will try it. Sofar I only hardcoded 320x240 into screen.c

Matthias

-- 
Matthias Arndt <marndt at asmsoftware.de>
PGP-Key: http://www.final-memory.org/files/marndt.asc   ICQ: 40358321
>>> Jabber: simonsunnyboy at jabber.ccc.de <<<




More information about the hatari-devel mailing list