From 1ad9f6acf2cb8e04bf7e083a2023003becfa64cf Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 10 Feb 2016 21:02:38 +0000 Subject: Fixed Screen Drivers for MSWindows git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11150 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.h') diff --git a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.h b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.h index 2f7e104f0..be0ee2caf 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.h +++ b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.h @@ -26,19 +26,19 @@ #define FL_WINAPI_SCREEN_DRIVER_H #include +#include -/* - Move everything here that manages the native screen interface. - - There is exactly one screen driver in the system. - - - screen configuration and sizes - - multiple screens - - native dialog boxes -*/ +class FL_EXPORT Fl_WinAPI_Screen_Driver : public Fl_Screen_Driver +{ +protected: + RECT screens[MAX_SCREENS]; + RECT work_area[MAX_SCREENS]; + float dpi[MAX_SCREENS][2]; + + static BOOL CALLBACK screen_cb(HMONITOR mon, HDC, LPRECT r, LPARAM); + BOOL screen_cb(HMONITOR mon, HDC, LPRECT r); -class FL_EXPORT Fl_WinAPI_Screen_Driver : public Fl_Screen_Driver { public: virtual void init(); virtual int x(); -- cgit v1.2.3