cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

chpan
Journeyman III

How to user? ADL_Display_SLSMapConfig_Create ( int iAdapterIndex, ADLSLSMap SLSMap, int iNumTargetTarget, ADLSLSTarget * lpSLSTarget, int iBezelModePercent, int * lpSLSMapIndex, int iOption )

I don't know why return -1?

0 Likes
1 Reply
chpan
Journeyman III

Re: How to user? ADL_Display_SLSMapConfig_Create ( int iAdapterIndex, ADLSLSMap SLSMap, int iNumTargetTarget, ADLSLSTarget * lpSLSTarget, int iBezelModePercent, int * lpSLSMapIndex, int iOption )

{

                                                  map.iAdapterIndex                                        = iAdapterIndex;

                                                  map.iSLSMapIndex                                        = 0;

 

                                                  map.grid.iAdapterIndex                              = iAdapterIndex;

                                                  map.grid.iSLSGridIndex                              = 0;

                                                  map.grid.iSLSGridColumn                              = 3;

                                                  map.grid.iSLSGridRow                              = 1;

                                                  map.grid.iSLSGridValue                              = 0;

                                                  map.grid.iSLSGridMask                              = 0;

                                                  //map.grid                                                            = *lppSLSGrid;

                                                  map.iSurfaceMapIndex                              = 0;

                                                  map.iOrientation                                        = 0;

                                                  map.iFirstSLSTargetArrayIndex          = 0;

                                                  map.iNumSLSTarget                                        = 3;

                                                  map.iNumNativeMode                                        = 3;

                                                  map.iFirstNativeModeArrayIndex          = 0;

                                                  map.iNumBezelMode                                        = 0;

                                                  map.iFirstBezelModeArrayIndex          = 0;

                                                  map.iNumBezelOffset                                        = 0;

                                                  map.iFirstBezelOffsetArrayIndex          = 0;

                                                  map.iSLSMapMask                                                  = 31;

                                                  map.iSLSMapValue                                        = 1;

 

 

                                                  slstarg.iAdapterIndex                              = iAdapterIndex;

                                                  slstarg.iSLSMapIndex                              = 0;

                                                  //slstarg.displayTarget.displayID = lpAdlDisplayInfo[ i ].displayID;

                                                  slstarg.displayTarget.iDisplayMapIndex = 1;

                                                  slstarg.displayTarget.iDisplayTargetMask = 0;

                                                  slstarg.displayTarget.iDisplayTargetValue = 0;

                                                  slstarg.iSLSTargetMask                              = 0;

                                                  slstarg.iSLSGridPositionX                    = 0;

                                                  slstarg.iSLSGridPositionY                    = 0;

                                                  //slstarg.viewSize                                        = *lppModes;

                                                  //slstarg.viewSize.displayID                    = lpAdlDisplayInfo[ i ].displayID;

                                                  slstarg.iSLSTargetMask                              = 0;

                                                  slstarg.iSLSTargetValue                              = 0;

                                                  //slstarg.viewSize.displayID = lpAdlDisplayInfo[ j ].displayID;

                                                  //slstarg.viewSize.fRefreshRate = 60;

                                                  //slstarg.viewSize.iColourDepth = 32;

                                                  //slstarg.viewSize.iOrientation = 90;

                                                  //slst arg.viewSize.iAdapterIndex = iAdapterIndex;

                                                  //slstarg.viewSize.iXRes = 1900;

                                                  //slstarg.viewSize.iYRes = 1080;

                                        }

0 Likes