diff --git a/CHANGES b/CHANGES index 75289c0fe..3a19478c7 100644 --- a/CHANGES +++ b/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, diff --git a/src/Fl_Browser.cxx b/src/Fl_Browser.cxx index d0a9b9989..835012720 100644 --- a/src/Fl_Browser.cxx +++ b/src/Fl_Browser.cxx @@ -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);