mod/maxgui.mod/fltkmaxgui.mod/src/Fl_Double_Window.cxx
void fl_copy_offscreen(int x, int y, int w, int h, Fl_Offscreen pixmap, int srcx, int srcy) {
  if( fl_graphics_driver == fl_display_device->driver()) {
    fl_copy_offscreen_to_display(x, y, w, h, pixmap, srcx, srcy);
  }
  else { // when copy is not to the display
    fl_begin_offscreen(pixmap);
    uchar *img = fl_read_image(NULL, srcx, srcy, w, h, 0);
    fl_end_offscreen();
    fl_draw_image(img, x, y, w, h, 3, 0);
    delete img;
  }
}
/** 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
 */
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
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) {
  if( fl_graphics_driver == fl_display_device->driver()) {
    fl_copy_offscreen_to_display(x, y, w, h, pixmap, srcx, srcy);
  }
  else { 
    fl_begin_offscreen(pixmap);
    uchar *img = fl_read_image(NULL, srcx, srcy, w, h, 0);
    fl_end_offscreen();
    fl_draw_image(img, x, y, w, h, 3, 0);
    delete img;
  }
}
void fl_copy_offscreen ( int x , int y , int w , int h , Fl_Offscreen pixmap , int srcx , int srcy ) { if ( fl_graphics_driver == fl_display_device -> driver ( ) ) { fl_copy_offscreen_to_display ( x , y , w , h , pixmap , srcx , srcy ) ; } else { fl_begin_offscreen ( pixmap ) ; uchar * img = fl_read_image ( NULL , srcx , srcy , w , h , 0 ) ; fl_end_offscreen ( ) ; fl_draw_image ( img , x , y , w , h , 3 , 0 ) ; delete img ; } }
Copy a rectangular area of the given offscreen buffer into the current drawing destination.
Copy a rectangular area of the given offscreen buffer into the current drawing destination .
// when copy is not to the display