From 1fc01c7cbb23fe21b1cf07261659badfb1dd3fb9 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 14 Dec 2016 18:54:12 +0000 Subject: Implement a platform-independent version of Fl_Graphics_Driver::copy_offscreen() usable when drawing to PostScript. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12147 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx') diff --git a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx index 6c3e99dca..2b1f65e0a 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx +++ b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx @@ -638,6 +638,15 @@ float Fl_WinAPI_Screen_Driver::desktop_scaling_factor() { return scaling; } +void Fl_WinAPI_Screen_Driver::offscreen_size(Fl_Offscreen off, int &width, int &height) +{ + BITMAP bitmap; + if ( GetObject(off, sizeof(BITMAP), &bitmap) ) { + width = bitmap.bmWidth; + height = bitmap.bmHeight; + } +} + // // End of "$Id$". // -- cgit v1.2.3