diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2005-04-02 19:16:36 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2005-04-02 19:16:36 +0000 |
| commit | 6cab1f4839127b36b98f4af3173c9588ead12fe5 (patch) | |
| tree | 1098ede5277ae27bff4553db99a0a02f3908c377 /src | |
| parent | f12052870cb82ec885f0feb0c23bde8f56cbe53a (diff) | |
Attempt to fix the missing multimonitor support in VisualC6. Well, it does compile, link and run now, but since I have only a single monitor, I can't test this. Could someone please verify this fix.
Also, it may be useful to add '#if _MSC_VER<0x0600' or something like that.
Feedback please! Thanks!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4234 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/screen_xywh.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/screen_xywh.cxx b/src/screen_xywh.cxx index c967394fe..dd4b8ff5f 100644 --- a/src/screen_xywh.cxx +++ b/src/screen_xywh.cxx @@ -34,7 +34,13 @@ // Number of screens... static int num_screens = 0; -#ifdef WIN32 +#ifdef WIN32
+
+#if !defined(HMONITOR_DECLARED) && (_WIN32_WINNT < 0x0500)
+#define COMPILE_MULTIMON_STUBS
+#include <multimon.h>
+#endif
+ static RECT screens[16]; static BOOL CALLBACK screen_cb(HMONITOR mon, HDC, LPRECT, LPARAM) { |
