diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2003-06-12 01:36:18 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2003-06-12 01:36:18 +0000 |
| commit | f438ffa0870d9a131166a5a3463859c4994d10fa (patch) | |
| tree | 96bbe0c7b54b68d4519c01d6dec16ad52b72ac67 /src/Fl_Help_View.cxx | |
| parent | dd6c9535ef382b15966ac1afe0976acc3b61b54a (diff) | |
Added documentation for all forms of Fl_Widget::damage() (STR
#61)
Fl_Double_Window now has a type() value of FL_DOUBLE_WINDOW, to
allow double-buffered windows to process redraws properly on
WIN32 (STR #46)
Added FL_DAMAGE_USER1 and FL_DAMAGE_USER2 damage bits for use by
widget developers (STR #57)
Fl_Help_View didn't support numeric character entities (STR #66)
Menu shortcuts didn't use the Mac key names under MacOS X (STR
#71)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3026 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Help_View.cxx')
| -rw-r--r-- | src/Fl_Help_View.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/Fl_Help_View.cxx b/src/Fl_Help_View.cxx index 58c177fcb..75136ebda 100644 --- a/src/Fl_Help_View.cxx +++ b/src/Fl_Help_View.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Help_View.cxx,v 1.1.2.47 2003/05/21 16:12:14 easysw Exp $" +// "$Id: Fl_Help_View.cxx,v 1.1.2.48 2003/06/12 01:36:17 easysw Exp $" // // Fl_Help_View widget routines. // @@ -2759,9 +2759,11 @@ quote_char(const char *p) { // I - Quoted string { "yuml;", 5, 255 } }; - - if (isdigit(*p)) return atoi(p); - + if (!strchr(p, ';')) return -1; + if (*p == '#') { + if (*(p+1) == 'x' || *(p+1) == 'X') return strtol(p+2, NULL, 16); + else return atoi(p+1); + } for (i = (int)(sizeof(names) / sizeof(names[0])), nameptr = names; i > 0; i --, nameptr ++) if (strncmp(p, nameptr->name, nameptr->namelen) == 0) return nameptr->code; @@ -2793,5 +2795,5 @@ hscrollbar_callback(Fl_Widget *s, void *) // -// End of "$Id: Fl_Help_View.cxx,v 1.1.2.47 2003/05/21 16:12:14 easysw Exp $". +// End of "$Id: Fl_Help_View.cxx,v 1.1.2.48 2003/06/12 01:36:17 easysw Exp $". // |
