From e59a06f75328996b2f8277f10983c992239807c2 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 25 Apr 2018 11:19:44 +0000 Subject: Windows: fix fl_copy_offscreen() when input offscreen is scaled and output surface is printer. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12869 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/drivers/GDI/Fl_GDI_Graphics_Driver.H | 1 + src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'src') diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver.H b/src/drivers/GDI/Fl_GDI_Graphics_Driver.H index 7b4e76c81..fdc646984 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver.H +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver.H @@ -168,6 +168,7 @@ public: void draw_pixmap(Fl_Pixmap *pxm, int XP, int YP, int WP, int HP, int cx, int cy); void draw_bitmap(Fl_Bitmap *bm, int XP, int YP, int WP, int HP, int cx, int cy); void draw_rgb(Fl_RGB_Image *rgb, int XP, int YP, int WP, int HP, int cx, int cy); + void copy_offscreen(int x, int y, int w, int h, Fl_Offscreen bitmap, int srcx, int srcy); }; diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx index 20d129e75..694fcc59d 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx @@ -114,6 +114,10 @@ void Fl_GDI_Graphics_Driver::copy_offscreen(int x, int y, int w, int h, Fl_Offsc DeleteDC(new_gc); } +void Fl_GDI_Printer_Graphics_Driver::copy_offscreen(int x, int y, int w, int h, Fl_Offscreen bitmap, int srcx, int srcy) { + Fl_Graphics_Driver::copy_offscreen(x, y, w, h, bitmap, srcx, srcy); +} + BOOL Fl_GDI_Graphics_Driver::alpha_blend_(int x, int y, int w, int h, HDC src_gc, int srcx, int srcy, int srcw, int srch) { return fl_alpha_blend(gc_, x, y, w, h, src_gc, srcx, srcy, srcw, srch, blendfunc); } -- cgit v1.2.3