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 /fluid/Fl_Window_Type.cxx | |
| 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
Diffstat (limited to 'fluid/Fl_Window_Type.cxx')
| -rw-r--r-- | fluid/Fl_Window_Type.cxx | 2 |
1 files changed, 2 insertions, 0 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(); |
