2 Replies Latest reply on Apr 24, 2012 10:25 PM by chpan

    ADL how to us ADL_Display_SLSMapConfig_Create

    LuciferCool

      how to us ADL_Display_SLSMapConfig_Create

      have to example??

       

       

                  ADLSLSMap map = new ADLSLSMap();

                  ADLSLSTarget slstag = new ADLSLSTarget();

                  {

                      map.iNumNativeMode = 3;

                      map.iNumSLSTarget = 2;

                      map.iSLSMapMask = 31;

                      map.iSLSMapValue = 1;

                      map.grid.iSLSGridColumn = 2;

                      map.grid.iSLSGridRow = 1;

                  }

                  Int32 islsmapindex = 0;

                  Int32 jj = ADL.ADL_Display_SLSMapConfig_Create(0, map, 0, ref slstag, 0, ref islsmapindex, 0);

                  MessageBox.Show(jj.ToString());



       

      return -1

        • ADL how to us ADL_Display_SLSMapConfig_Create
          AghaJan

          The interface to create a SLS is

          int EXPOSED ADL_Display_SLSMapConfig_Create (int iAdapterIndex,

                                                                                                                                               ADLSLSMap SLSMap,

                                                                                                                                               int iNumTargetTarget,

                                                                                                                                               ADLSLSTarget* lpSLSTarget,

                                                                                                                                               int iBezelModePercent,

                                                                                                                                               int *lpSLSMapIndex   ,

                                                                                                                                               int iOption

           

           

          1. This code did not fill out the SLSMap data, which will tell ADL what kinds of SLS will be created(2x1 or 1x2)
          2. It did not fill out  position info( each display in SLS has a position (X,Y)) in lpSLSTarget
          3. lpSLSTargart is a pointer of data structure( a list of data structure). Each target has a record.

           

            • Re: ADL how to us ADL_Display_SLSMapConfig_Create
              chpan

                                                                map.iAdapterIndex                                        = iAdapterIndex;

                                                                map.iSLSMapIndex                                        = 1;

                                                                //map.grid                                                            = *lppSLSGrid;

                                                                map.grid.iAdapterIndex                              = iAdapterIndex;

                                                                map.grid.iSLSGridIndex                              = iAdapterIndex;

                                                                map.grid.iSLSGridColumn                              = 2;

                                                                map.grid.iSLSGridRow                              = 1;

                                                                map.grid.iSLSGridIndex                              = 16;

                                                                map.grid.iSLSGridValue                              = 16;

               

               

                                                                map.iSurfaceMapIndex                              = 1;

                                                                map.iOrientation                                        = 0;

                                                                map.iFirstSLSTargetArrayIndex          = 0;

                                                                map.iNumSLSTarget                                        = 2;

                                                                map.iNumNativeMode                                        = 2;

                                                                map.iFirstNativeModeArrayIndex          = 0;

                                                                map.iNumBezelMode                                        = 0;

                                                                map.iFirstBezelModeArrayIndex          = 1;

                                                                map.iNumBezelOffset                                        = 1;

                                                                map.iFirstBezelOffsetArrayIndex          = 0;

                                                                map.iSLSMapMask                                                  = ADL_DISPLAY_SLSMAPCONFIG_GET_OPTION_RELATIVETO_LANDSCAPE;

                                                                map.iSLSMapValue                                        = ADL_DISPLAY_SLSMAP_CURRENTCONFIG;

               

               

                                                                slstarg.iAdapterIndex                              = iAdapterIndex;

                                                                slstarg.iSLSMapIndex                              = 0;

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

                                                                slstarg.iSLSTargetMask                              = 1;

                                                                slstarg.iSLSGridPositionX                    = 1900;

                                                                slstarg.iSLSGridPositionY                    = 1080;

                                                                slstarg.viewSize                                        = *lppModes;

                                                                slstarg.iSLSTargetMask                              = ADL_DISPLAY_SLSMAPCONFIG_GET_OPTION_RELATIVETO_LANDSCAPE;

                                                                slstarg.iSLSTargetValue                              = ADL_DISPLAY_SLSMAP_CURRENTCONFIG;

               

              if ( rlt = ADL_Display_SLSMapConfig_Create ( iAdapterIndex, map, 3, &slstarg, 0, &slsMapIndex, 0 ) )

                                                      {

                                                                if ( rlt != 0 )

                                                                {

                                                                          printf ( "SLSMapConfig Create fail.\n" );

                                                                }

                                                      }

               

              why return -1?