From 6849c43a05bcd7cfa8576eba6e1413415e1cdfd9 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 21 Nov 2004 15:33:24 +0000 Subject: 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 --- src/Fl_Double_Window.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/Fl_Double_Window.cxx b/src/Fl_Double_Window.cxx index eb834c980..e3fc8edcd 100644 --- a/src/Fl_Double_Window.cxx +++ b/src/Fl_Double_Window.cxx @@ -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 $". // -- cgit v1.2.3