diff options
| author | Manolo Gouy <Manolo> | 2016-03-27 19:15:35 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-03-27 19:15:35 +0000 |
| commit | baf41cac1a03e18c3f6c60196cc5b0f1dd367884 (patch) | |
| tree | 04fb0d0cb9dcfd9918f35cfb6dfcf14ca23df381 /src | |
| parent | 21540390cb464b08d4a760807120c35ed847f020 (diff) | |
Remove platform-dependent code from Fl_Widget_Surface.cxx - last part.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11446 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Widget_Surface.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/Fl_Widget_Surface.cxx b/src/Fl_Widget_Surface.cxx index 42f307b07..1453b9447 100644 --- a/src/Fl_Widget_Surface.cxx +++ b/src/Fl_Widget_Surface.cxx @@ -149,23 +149,17 @@ void Fl_Widget_Surface::origin(int x, int y) { */ void Fl_Widget_Surface::print_window_part(Fl_Window *win, int x, int y, int w, int h, int delta_x, int delta_y) { - Fl_Surface_Device *current = Fl_Surface_Device::surface(); Fl_Display_Device::display_device()->set_current(); Fl_Window *save_front = Fl::first_window(); win->show(); Fl::check(); - Fl_X::i(win)->flush(); // makes the window current + Fl_X::i(win)->flush(); // makes the window current necessary for fl_read_image uchar *image_data; image_data = fl_read_image(NULL, x, y, w, h); if (save_front != win) save_front->show(); - current->set_current(); + set_current(); fl_draw_image(image_data, delta_x, delta_y, w, h, 3); delete[] image_data; -#ifdef WIN32 - HDC gc = GetDC(fl_xid(win)); - fl_graphics_driver->gc(gc); - ReleaseDC(fl_xid(win), gc); -#endif } /** |
