Fix Fl_Browser background and text color parsing (STR #3376).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12334 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
5252bbe03b
commit
07a62cdeb6
1
CHANGES
1
CHANGES
@ -3,6 +3,7 @@ CHANGES IN FLTK 1.3.5 RELEASED: ??? ?? 2017
|
||||
|
||||
Bug fixes and other improvements
|
||||
|
||||
- Fix Fl_Browser background and text color parsing (STR #3376).
|
||||
- Fix Windows CreateDC/DeleteDC mismatch (STR #3373).
|
||||
- Updated bundled configure scripts config.guess and config.sub.
|
||||
- Fix configure --enable-cairo --enable-cairoext,
|
||||
|
||||
@ -545,12 +545,12 @@ void Fl_Browser::item_draw(void* item, int X, int Y, int W, int H) const {
|
||||
case 'r': talign = FL_ALIGN_RIGHT; break;
|
||||
case 'B':
|
||||
if (!(l->flags & SELECTED)) {
|
||||
fl_color((Fl_Color)strtol(str, &str, 10));
|
||||
fl_color((Fl_Color)strtoul(str, &str, 10));
|
||||
fl_rectf(X, Y, w1, H);
|
||||
} else while (isdigit(*str & 255)) str++; // skip digits
|
||||
break;
|
||||
case 'C':
|
||||
lcol = (Fl_Color)strtol(str, &str, 10);
|
||||
lcol = (Fl_Color)strtoul(str, &str, 10);
|
||||
break;
|
||||
case 'F':
|
||||
font = (Fl_Font)strtol(str, &str, 10);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user