cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

albert281
Journeyman III

ADL SDK 3.0

How can I get the desktop configuration(i.e. CLONE, EXTENDED, etc.)

I am looking for an API that can tell me what mode the desktop is in.  In the ADL SDK documentation, there is a set of flags defined as follows:

 

  

/// \defgroup define_desktop_config Desktop Configuration Flags///These flags are used by ADL_DesktopConfig_xxx

// @{



 

 

 

 

 

 

 

 

#define

 

 

ADL_DESKTOPCONFIG_UNKNOWN 0

/* UNKNOWN desktop config */

#define

 

 

ADL_DESKTOPCONFIG_SINGLE (1 << 0)

/* Single */

#define

 

 

ADL_DESKTOPCONFIG_CLONE (1 << 2)

/* Clone */

#define

 

 

ADL_DESKTOPCONFIG_BIGDESK_H (1 << 4)

/* Big Desktop Horizontal */

#define

 

 

ADL_DESKTOPCONFIG_BIGDESK_V (1 << 5)

/* Big Desktop Vertical */

#define

 

 

ADL_DESKTOPCONFIG_BIGDESK_HR (1 << 6)

/* Big Desktop Reverse Horz */

#define

 

 

ADL_DESKTOPCONFIG_BIGDESK_VR (1 << 7)

/* Big Desktop Reverse Vert */

#define

 

 

ADL_DESKTOPCONFIG_RANDR12 (1 << 😎

/* RandR 1.2 Multi-display */

// @}

 



 





What API uses these flags?  There is no such API called ADL_DesktopConfig_xxx, and I can't find an API that will return these flags.

 

0 Likes
3 Replies
AghaJan
Staff

int 

ADL_DesktopConfig_Get (int iAdapterIndex, int *lpDesktopConfig)

Uses these defines and returns the desktop configuration in lpDesktopConfig

 However this is LINUX only API.

0 Likes

what if i want to make it in Windows.

 

0 Likes

In windows, using ADLutl, (I have "stretch horizontally onto this monitor") I do "adlutl get blah", then immediately "adlutl set blah", the stretch disappears! I get cloned displays instead.

Altering the xPos parm by hand before the set does nothing useful.

What am I doing wrong?

 



0 Likes