[hatari-devel] Crosscompiling Hatari for GP2X Wiz
Eero Tamminen
oak at helsinkinet.fi
Wed Mar 30 21:12:58 CEST 2011
Hi,
On keskiviikko 30 maaliskuu 2011, Matthias Arndt wrote:
>> SDL seems to have macro for checking for SDL version, so it might be
>> possible that it doesn't need changes to CMake.
>
> I checked those version macros aswell. The problem is, they only work at
> runtime while the problem already occurs at compile time.
Sorry, I don't understand. Those macros are evaluated at compile-time
against version defines coming from your SDL headers. It doesn't do
anything at runtime.
> The good points: the binary can execute, I can get terminal output.
> The bad point: The config I customtailored for my tests works with the
> PC Linux build and opens a 320x240 window.
320x240, not 32x200?
> On the Wiz it gives "Video mode not supported"
>
> That error seems to come from SDL and not Hatari.
>
> The following SDL video init works for my own SDL game on the Wiz:
>
> screen = SDL_SetVideoMode(320, 240, 16, SDL_video_flags)
>
> The flags are set to no hardware surface, fullscreen, no doublebuffer
Only difference that Hatari has in flags is that it sets SDL_HWSURFACE flag
for fullscreen. In both fullscreen & windows mode it sets SDL_HWPALETTE.
First you can test by starting Hatari in non-fullscreen, second you could
try with your tester.
I guess SDL_HWPALETTE is relevant only for 8-bit more, so it would seem
a bit strange if that's the problem...
> 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 won't start coding my joystick and keyboard patches unless I finally
> can get some screen output or atleast an EmuTOS bootscreen on my Wiz.
Actually, I started to think that the joystick thing could be quite
inconvenient for the user. He would need to use Hatari options dialog
to switch to normal joystick after he's handled the key press.
Wikipedia didn't say whether the device has X server:
http://en.wikipedia.org/wiki/GP2X_Wiz
If it has, wouldn't it be more convenient & easier just to launch something
like xvkbd with Hatari (like some people do with other emulators on N8x0)?
- Eero
More information about the hatari-devel
mailing list