[maemo-developers] [maemo-developers] 800x480

From: Salonen Kuisma kuisma.salonen at maemo.org
Date: Tue May 31 11:56:53 EEST 2005
Hi,

ext Timo Savola wrote:
> On Mon, 2005-05-30 at 20:15 -0300, Daniel Monteiro wrote:
> 
> 
>>how do I create a SDL project under Maemo? what files are needed? what 
>>are the diferences?
> 
> 
> It's no different from creating a SDL program in Linux.  You might want
> to set the proper window size (720x420 windowed, 800x480 full-screen),
> use 16-bit depth, and perhaps listen for the F6 key event (or does SDL
> catch the hardware fullscreen button event?).  Just see the SDL
> documentation (or don't if you already know it) and link with -lSDL.
> 
> timo

Actually SDL catches all key events from X, so if you have for example 
USB keyboard attached (which doesn't work with usual GTK+ stuff), you'll 
catch all the events (if the kernel is compiled to support USB 
peripherials).

Also for the window sizes you can use smaller sizes, but you'll have 
those black borders..

Also one note about SDL applications. Unless you want to use glib with 
your SDL application (or game), listening to dbus is rather extreme. 
Currently there exists this game startup app - game thing (check 
icebreaker for example) and there exists *tunjo glueware to wrap some of 
the D-BUS communication into unix domain socket..

Of course you don't have to give a shit about those, you could just 
launch SDL application without caring about any those, it's up to you if 
you like this stuff or not.

-Kuisma

More information about the maemo-developers mailing list