summaryrefslogtreecommitdiff
path: root/src/Fl_mac.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-01-03 18:28:37 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-01-03 18:28:37 +0000
commit8fe611b5cdc715900255ec328fb86264f64279f5 (patch)
tree1fd07df87a847a942e7a50cec524d8ab14dcaf40 /src/Fl_mac.cxx
parent81be28e2dd5c7609ba9a07f20646b05bcb53e727 (diff)
Fix changing of schemes - otherwise Fl_Window::show() could cause a
reference to a non-existing tiled image. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1908 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_mac.cxx')
-rw-r--r--src/Fl_mac.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/Fl_mac.cxx b/src/Fl_mac.cxx
index ad96c7f4c..b636b4e12 100644
--- a/src/Fl_mac.cxx
+++ b/src/Fl_mac.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_mac.cxx,v 1.1.2.12 2002/01/03 08:08:21 matthiaswm Exp $"
+// "$Id: Fl_mac.cxx,v 1.1.2.13 2002/01/03 18:28:36 easysw Exp $"
//
// MacOS specific code for the Fast Light Tool Kit (FLTK).
//
@@ -1008,6 +1008,13 @@ void Fl_Window::label(const char *name,const char */*iname*/) {
* make a window visible
*/
void Fl_Window::show() {
+ image(Fl::scheme_bg_);
+ if (Fl::scheme_bg_) {
+ labeltype(FL_NORMAL_LABEL);
+ align(FL_ALIGN_CENTER | FL_ALIGN_INSIDE | FL_ALIGN_CLIP);
+ } else {
+ labeltype(FL_NO_LABEL);
+ }
if (!shown() || !i) {
Fl_X::make(this);
} else {
@@ -1089,6 +1096,6 @@ void Fl_Window::make_current()
}
//
-// End of "$Id: Fl_mac.cxx,v 1.1.2.12 2002/01/03 08:08:21 matthiaswm Exp $".
+// End of "$Id: Fl_mac.cxx,v 1.1.2.13 2002/01/03 18:28:36 easysw Exp $".
//