From 7d6b88740165c7d96509598b59f0e2f0de9fc04c Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 21 Mar 2005 19:41:23 +0000 Subject: 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 --- fluid/Fl_Window_Type.cxx | 2 ++ fluid/function_panel.cxx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3