Check for a NULL off-screen buffer before copying...

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3911 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2004-11-21 15:33:24 +00:00
parent 876e29acef
commit 6849c43a05
2 changed files with 3 additions and 6 deletions

View File

@ -1,6 +1,7 @@
CHANGES IN FLTK 1.1.6
- Documentation updates (STR #552, STR #608)
- Fl_Double_Window produced an error on resize with X11
- FLUID didn't display menu items using images properly
(STR #564)
- Fl_Sys_Menu_Bar didn't compile on case-sensitive

View File

@ -1,5 +1,5 @@
//
// "$Id: Fl_Double_Window.cxx,v 1.12.2.4.2.12 2004/08/31 22:00:47 matthiaswm Exp $"
// "$Id: Fl_Double_Window.cxx,v 1.12.2.4.2.13 2004/11/21 15:33:24 easysw Exp $"
//
// Double-buffered window code for the Fast Light Tool Kit (FLTK).
//
@ -315,11 +315,7 @@ void Fl_Double_Window::flush(int eraseoverlay) {
// on Irix (at least) it is faster to reduce the area copied to
// the current clip region:
int X,Y,W,H; fl_clip_box(0,0,w(),h(),X,Y,W,H);
#ifdef __APPLE__
if (myi->other_xid) fl_copy_offscreen(X, Y, W, H, myi->other_xid, X, Y);
#else
fl_copy_offscreen(X, Y, W, H, myi->other_xid, X, Y);
#endif
}
void Fl_Double_Window::resize(int X,int Y,int W,int H) {
@ -352,5 +348,5 @@ Fl_Double_Window::~Fl_Double_Window() {
}
//
// End of "$Id: Fl_Double_Window.cxx,v 1.12.2.4.2.12 2004/08/31 22:00:47 matthiaswm Exp $".
// End of "$Id: Fl_Double_Window.cxx,v 1.12.2.4.2.13 2004/11/21 15:33:24 easysw Exp $".
//