mirror of https://github.com/fltk/fltk
BC++ workaround...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2675 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
9282371cb5
commit
1d42e4784b
2
CHANGES
2
CHANGES
|
@ -1,5 +1,7 @@
|
|||
CHANGES IN FLTK 1.1.1
|
||||
|
||||
- Added a workaround for a compiler bug in Borland C++
|
||||
that prevented Fl_Help_View.cxx from compiling.
|
||||
- Checkmarks didn't scale properly; copied the 2.0 check
|
||||
mark code over.
|
||||
- Replaced several memcpy's with memmove's for
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
//
|
||||
// "$Id: Fl_Help_View.cxx,v 1.1.2.42 2002/08/18 15:19:24 easysw Exp $"
|
||||
// "$Id: Fl_Help_View.cxx,v 1.1.2.43 2002/10/11 20:48:14 easysw Exp $"
|
||||
//
|
||||
// Fl_Help_View widget routines.
|
||||
//
|
||||
|
@ -2067,8 +2067,17 @@ Fl_Help_View::get_color(const char *n, // I - Color name
|
|||
return (FL_BLACK);
|
||||
else if (strcasecmp(n, "red") == 0)
|
||||
return (FL_RED);
|
||||
#ifdef __BORLANDC__ // Workaround for compiler bug...
|
||||
else if (strcasecmp(n, "green") == 0) {
|
||||
r = 0;
|
||||
g = 0x80;
|
||||
b = 0;
|
||||
return (fl_rgb_color(r, g, b));
|
||||
}
|
||||
#else
|
||||
else if (strcasecmp(n, "green") == 0)
|
||||
return (fl_rgb_color(0, 0x80, 0));
|
||||
#endif // __BORLANDC__
|
||||
else if (strcasecmp(n, "yellow") == 0)
|
||||
return (FL_YELLOW);
|
||||
else if (strcasecmp(n, "blue") == 0)
|
||||
|
@ -2721,5 +2730,5 @@ hscrollbar_callback(Fl_Widget *s, void *)
|
|||
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Help_View.cxx,v 1.1.2.42 2002/08/18 15:19:24 easysw Exp $".
|
||||
// End of "$Id: Fl_Help_View.cxx,v 1.1.2.43 2002/10/11 20:48:14 easysw Exp $".
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue