mirror of https://github.com/fltk/fltk
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
This commit is contained in:
parent
55002148cd
commit
7d6b887401
|
@ -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();
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue