summaryrefslogtreecommitdiff
path: root/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx')
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx9
1 files changed, 9 insertions, 0 deletions
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$".
//