diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-03-21 19:41:23 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-03-21 19:41:23 +0000 |
| commit | 7d6b88740165c7d96509598b59f0e2f0de9fc04c (patch) | |
| tree | 790b46133ec90cff15c721c91c783d05e6fd6442 | |
| parent | 55002148cd8a59947989179958f9a8e3a95d1fe5 (diff) | |
If window has not been shown yet, set the image to the scheme_bg_ image so
that prints and template screenshots show the correct background.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4159 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | fluid/Fl_Window_Type.cxx | 2 | ||||
| -rw-r--r-- | fluid/function_panel.cxx | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx index 774a7465f..dbd8a3a1c 100644 --- a/fluid/Fl_Window_Type.cxx +++ b/fluid/Fl_Window_Type.cxx @@ -282,6 +282,8 @@ uchar *Overlay_Window::read_image(int &ww, int &hh) { // Redraw the window into the offscreen buffer... fl_begin_offscreen(offscreen); + if (!shown()) image(Fl::scheme_bg_); + redraw(); draw(); diff --git a/fluid/function_panel.cxx b/fluid/function_panel.cxx index 1a240fa66..e4d77bb78 100644 --- a/fluid/function_panel.cxx +++ b/fluid/function_panel.cxx @@ -432,7 +432,7 @@ Fl_Window *widgetbin_panel=(Fl_Window *)0; Fl_Window* make_widgetbin() { Fl_Window* w; - { Fl_Window* o = widgetbin_panel = new Fl_Window(485, 100, "Widget Bin"); + { Fl_Window* o = widgetbin_panel = new Fl_Window(490, 100, "Widget Bin"); w = o; { Fl_Group* o = new Fl_Group(3, 3, 74, 74); o->box(FL_THIN_DOWN_BOX); |
