On 27.04.2012, at 17:37, David Currie wrote:
>>> Pause...
>>
>> Did OpenGL build OK? Last time I started with a "fresh" Ubuntu install I ha=
>> d to faff about for a while getting all the GL dev stuff installed...
>>
>
> struct Style_Table_Entry {
> Fl_Color color;
> Fl_Font font;
> Fl_Fontsize size;
> unsigned attr; // attr is so far unused so i used it for Fl_Color bg
> };
You could separate "attr" into four "unsigned char". One byte could contain the
color index. 256 colors are available and can be reassigned, which is more than
you have style table entries. No reason to go RRGGBB. A second byte could still
handle underline and strike-trhough. Bold and Italics is already part of the
"font" information, so no loss there. That still leaves two bytes for fun and
future ideas.
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev