[openbeos] Re: New icons

<snip>
>It *both* has the string based ui_color() and the old one, but with new 
>values.
>
>rgb_color       ui_color(color_which which);
>rgb_color       ui_color(const char* name);
Ah. My mistake. Perhaps I should refrain from opening my big fat mouth when 
I'm not feeling well, like today. My bad. 

>The string based version is unneed IMO
>but the int one should be kept compatible with Dano if possible.
>
>> 
>> >François.
>> >P.S. how would I #ifdef such a thing ? can't #ifdef on enums
>> Probably #ifdef the whole enum definition would be the only way to go
>> AFAIK.
>
>enum isn't a preprocessor directive, it doesn't even see it.
I know that. What I had originally meant was something like this:

#ifdef R5
enum {
B_A_COLOR=0,
B_ANOTHER_COLOR,
HONEY_B_COLOR
} color_which;
#endif

#ifdef DANO
enum {
B_DANO_COLOR_1,
B_DANO_COLOR_2
} color_which;
#endif

I guess now that's a moot point now, though. Like Erik said, it'll be ironed 
out. I'll try to find a different way to break things. :D

--DarkWyrm


Other related posts: