diff options
| author | Bill Spitzak <spitzak@gmail.com> | 2001-05-19 21:30:23 +0000 |
|---|---|---|
| committer | Bill Spitzak <spitzak@gmail.com> | 2001-05-19 21:30:23 +0000 |
| commit | 07656afb7d81867ce91ac1c83645e28d276e1302 (patch) | |
| tree | e76590453296b7a9854595b23ac2d869f88ca88e /src/fl_overlay_visual.cxx | |
| parent | 9c19542bd28b586657a017363c37a630aac93342 (diff) | |
Fl_Menu_add of a menu item with the same name as an existing submenu
title would mess up by replacing that menu title, it now adds a new
item.
Fl_Menu::add() of text starting with '/' to a menu is assummed to be a
filename. So "/foo/bar" creates a single menu item. You can also put
filenames into submenus by doing "submenu//foo/bar", this will create
a submenu called "submenu" with an item "/foo/bar". Menu items
starting with "\_" will insert an item starting with '_' rather than a
divider line. These changes make the menus compatable with fltk 2.0.
Another little fix for the BoXX OpenGL overlays.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1460 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_overlay_visual.cxx')
| -rw-r--r-- | src/fl_overlay_visual.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fl_overlay_visual.cxx b/src/fl_overlay_visual.cxx index 8a14c1a56..8d3538a0c 100644 --- a/src/fl_overlay_visual.cxx +++ b/src/fl_overlay_visual.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_overlay_visual.cxx,v 1.4.2.4 2001/05/05 23:39:01 spitzak Exp $" +// "$Id: fl_overlay_visual.cxx,v 1.4.2.5 2001/05/19 21:30:23 spitzak Exp $" // // X overlay support for the Fast Light Tool Kit (FLTK). // @@ -76,7 +76,7 @@ XVisualInfo *fl_find_overlay_visual() { int num; XVisualInfo *v1=XGetVisualInfo(fl_display, VisualIDMask, &templt, &num); if (v1->screen == fl_screen && v1->c_class == PseudoColor - && (!v || v1->depth >= v->depth && v1->depth <= 8)) { + && (!v || v1->depth > v->depth && v1->depth <= 8)) { if (v) XFree((char*)v); v = v1; fl_transparent_pixel = overlayInfo[i].value; @@ -99,5 +99,5 @@ XVisualInfo *fl_find_overlay_visual() { #endif // -// End of "$Id: fl_overlay_visual.cxx,v 1.4.2.4 2001/05/05 23:39:01 spitzak Exp $". +// End of "$Id: fl_overlay_visual.cxx,v 1.4.2.5 2001/05/19 21:30:23 spitzak Exp $". // |
