From 0adbc977ac7848e8092fa1d58174d0a37aabb86b Mon Sep 17 00:00:00 2001 From: Sven Gothel <sgothel@jausoft.com> Date: Mon, 9 Mar 2015 15:45:36 +0100 Subject: 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. --- src/newt/native/ScreenMode.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/newt/native/ScreenMode.h') 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 ) -- cgit v1.2.3