summaryrefslogtreecommitdiffstats
path: root/win/rfb_win32/MonitorInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'win/rfb_win32/MonitorInfo.h')
-rw-r--r--win/rfb_win32/MonitorInfo.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/win/rfb_win32/MonitorInfo.h b/win/rfb_win32/MonitorInfo.h
index acf27755..2179b9b2 100644
--- a/win/rfb_win32/MonitorInfo.h
+++ b/win/rfb_win32/MonitorInfo.h
@@ -17,35 +17,18 @@
*/
// Helper class used to obtain information about a particular monitor.
-// This class wraps the Windows MONITORINFOEX ASCII structure, providing
-// methods that can safely be called on both multi-monitor aware systems
-// and older "legacy" systems.
#ifndef __RFB_WIN32_MONITORINFO_H__
#define __RFB_WIN32_MONITORINFO_H__
#include <windows.h>
-#ifdef MONITOR_DEFAULTTONULL
-#define RFB_HAVE_MONITORINFO
-#endif
namespace rfb {
namespace win32 {
// Structure containing info on the monitor nearest the window.
- // Copes with multi-monitor OSes and older ones.
-#ifdef RFB_HAVE_MONITORINFO
struct MonitorInfo : MONITORINFOEXA {
-#else
- struct MonitorInfo {
- DWORD cbSize;
- RECT rcMonitor;
- RECT rcWork;
- DWORD dwFlags;
- char szDevice[1]; // Always null...
-#endif
-
// Constructor: Obtains monitor info for the monitor that has the
// greatest overlap with the supplied window or rectangle.
MonitorInfo(HWND hwnd);