ext Michael Stepanov wrote:
> Well, there is a open source system for home automation - Plutohome
> (www.plutohome.com <http://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.

Are you missing icon 'highlight' effect when mouse is moved on top of
icon? Please specify exactly what the 'some events' are.

> 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.
>

I couldn't spot bugs in the code you sent, maybe OrbiterLogic has some
calls to renderer to change icon colors?. One thing which should be
changed in renderer class is the colordepth used for surfaces. Right now
it seems to be hardcoded to certain places as 32. Code should read the
correct depth using SDL_GetVideoInfo and make sure all the newly created
surfaces use the same depth to avoid amount of needed conversions.

> Thanks in advanced.
>
> On 2/9/07, [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>*
> <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> 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
>
>

--- 8< -----

// T

_______________________________________________
maemo-developers mailing list
[email protected]
https://maemo.org/mailman/listinfo/maemo-developers

Reply via email to