diff options
author | Sven Gothel <[email protected]> | 2015-03-09 15:45:36 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-03-09 15:45:36 +0100 |
commit | 0adbc977ac7848e8092fa1d58174d0a37aabb86b (patch) | |
tree | 3917a3cd756df3fdaa4320bfc4ebc9c32bb43f71 /src/newt/native/ScreenMode.h | |
parent | f0f6ee411efb97d34c443c070bb640c8d8a8333f (diff) |
Bug 1142 - NEWT: Add support to retrieve the primary MonitorDevice
Support added for
- Windows
- X11 XRandR 1.3
- OSX
Note: Our whole MonitorMode association handling is currently _not_ dynamic.
- only on Windows we actually use native unique ID,
which might not change (adapter and monitor idx)
- On OSX and X11 we simply use indices,
but if monitor setup changes - they refer to different instances.
In case it is desired to cover dynamic monitor setup change,
we need to address this issue in a new bug entry.
Diffstat (limited to 'src/newt/native/ScreenMode.h')
-rw-r--r-- | src/newt/native/ScreenMode.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/newt/native/ScreenMode.h b/src/newt/native/ScreenMode.h index 18e773107..5ae865b8e 100644 --- a/src/newt/native/ScreenMode.h +++ b/src/newt/native/ScreenMode.h @@ -40,8 +40,16 @@ #define NUM_MONITOR_MODE_PROPERTIES_ALL 8 /* count + the above */ -#define MIN_MONITOR_DEVICE_PROPERTIES 16 /* count + id + is_clone, ScreenSizeMM[width, height], rotated Viewport pixel-units, rotated Viewport pixel-units, currentMonitorModeId, rotation, supportedModeId+ */ - /* Viewport := [x, y, width, height] (4 elements) */ +#define MIN_MONITOR_DEVICE_PROPERTIES 17 /* count + id + isClone + isPrimary, + ScreenSizeMM[width, height], + rotated Viewport pixel-units, + rotated Viewport pixel-units, + currentMonitorModeId, + rotation, + supportedModeId+ + + with Viewport := [x, y, width, height] (4 elements) + */ #define FLAG_INTERLACE ( 1 << 0 ) #define FLAG_DOUBLESCAN ( 1 << 1 ) |