[maemo-developers] [maemo-developers] Nokia SDL color format for pixels
From: Michael Stepanov michael at stepanoff.orgDate: Sat Feb 10 10:00:07 EET 2007
- Previous message: [maemo-developers] Nokia SDL color format for pixels
- Next message: [maemo-developers] busybox, sh and $HOME
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Well, there is a open source system for home automation - Plutohome ( www.plutohome.com). This system can use Nokia770/800 as a control panel - Orbiter. The Orbiter is based on SDL. So, after some hack it started work on Nokia (os2005/os2006) but there is a problem. Icons on the Orbiter should change their color according to some events. Initially they are pink. Using SDL functionality their color can be changed. It works fine for Debian but it didn't work for Nokia (either scratchbox emulator or real device). All icons are pink every time. I'm not developer. I'm integrator. So, it's difficult for me to understand where is the problem. Have a look attached files. Maybe you can help me. Thanks in advanced. On 2/9/07, Tapani.Palli at nokia.com <Tapani.Palli at nokia.com> wrote: > > Hello, > Could you be more specific what are you trying todo and how? Are you > going through pixelvalues and accessing them? See > surface->format->BytesPerPixel. SDL_GetRGB and SDL_MapRGB should work > allright. > > // Tapani > > > ________________________________ > > From: maemo-developers-bounces at maemo.org > [mailto:maemo-developers-bounces at maemo.org] On Behalf Of ext Michael > Stepanov > Sent: 09 February, 2007 11:03 > To: maemo-developers at maemo.org > Subject: [maemo-developers] Nokia SDL color format for pixels > > > Hi, > > I have a question about SDL realization for Nokia770/800. Does > it use some different format to fill a pixel by some color? Because in > my application SDL is used to change color of icons according to some > conditions. It works fine under Linux (Debian) but it didn't work under > Nokia 770 (I tried for both os2005 and os2006). The color of icon is not > changed. Any ideas why? > Is there some manual about Nokia port of SDL? > > Thanks in advance. > > -- > Cheers, > Michael > > -- Cheers, Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20070210/3751b814/attachment.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: OrbiterRenderer_SDL.cpp Type: text/x-c++src Size: 21658 bytes Desc: not available Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20070210/3751b814/attachment.cpp -------------- next part -------------- A non-text attachment was scrubbed... Name: SDLGraphic.cpp Type: text/x-c++src Size: 6425 bytes Desc: not available Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20070210/3751b814/attachment-0001.cpp
- Previous message: [maemo-developers] Nokia SDL color format for pixels
- Next message: [maemo-developers] busybox, sh and $HOME
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]