From 0b406baa0f05d8b829d2c35b10c8450e7628be53 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 27 Feb 2016 13:52:27 +0000 Subject: Rewrite all fl_XXX_offscreen() functions so they use an Fl_Image_Surface object. These functions become therefore platform-independent. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11241 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Double_Window.cxx | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'src/Fl_Double_Window.cxx') diff --git a/src/Fl_Double_Window.cxx b/src/Fl_Double_Window.cxx index 975c23dd4..243101f96 100644 --- a/src/Fl_Double_Window.cxx +++ b/src/Fl_Double_Window.cxx @@ -81,20 +81,6 @@ void Fl_Double_Window::show() { } -/** \addtogroup fl_drawings - @{ - */ -/** Copy a rectangular area of the given offscreen buffer into the current drawing destination. - \param x,y position where to draw the copied rectangle - \param w,h size of the copied rectangle - \param pixmap offscreen buffer containing the rectangle to copy - \param srcx,srcy origin in offscreen buffer of rectangle to copy - */ -void fl_copy_offscreen(int x, int y, int w, int h, Fl_Offscreen pixmap, int srcx, int srcy) { - fl_graphics_driver->copy_offscreen(x, y, w, h, pixmap, srcx, srcy); -} -/** @} */ - /** see fl_copy_offscreen() */ void Fl_Graphics_Driver::copy_offscreen(int x, int y, int w, int h, Fl_Offscreen pixmap, int srcx, int srcy) { @@ -209,7 +195,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); - if (myi->other_xid) fl_copy_offscreen(X, Y, W, H, myi->other_xid, X, Y); + if (myi->other_xid) fl_graphics_driver->copy_offscreen(X, Y, W, H, myi->other_xid, X, Y); } void Fl_Double_Window::resize(int X,int Y,int W,int H) { -- cgit v1.2.3