Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Setting drawing color

Setting drawing color

From: Joseph Garvin <k04jg02_at_gmail.com>
Date: Sat, 5 Jul 2008 21:33:09 -0400

I'm writing a plugin and just trying to draw a blue filled rectangle on the
screen, but I'm not sure how. I think I need to be using rb->set_color in
plugin.h:

    bool (*set_color)(struct screen *display, char *title, unsigned *color,
                   unsigned banned_color);

But I'm not sure what the title parameter is for, how it extracts a color
from an unsigned int (RGB and throw away byte?) or what a banned_color is.
Help?

Joe
Received on 2008-07-06


Page was last modified "Jan 10 2012" The Rockbox Crew
aaa