olutions(C_ListBox*)
{
}

void SetAdvanced()
{
    C_Window *win;
    C_Button *button;
    C_ListBox *lbox;

    win = gMainHandler->FindWindow(SETUP_WIN);

    if (win == NULL) return;

    lbox = (C_ListBox *)win->FindControl(SET_VIDEO_DRIVER);

    if ( not lbox) return;

    int nDriver = lbox->GetTextID() - 1;
    lbox = (C_ListBox *)win->FindControl(SET_VIDEO_CARD);

    if ( not lbox) return;

    int nDevice = lbox->GetTextID() - 1;
    DeviceManager::DDDriverInfo *pDI = FalconDisplay.devmgr.GetDriver(nDriver);

    if ( not pDI) return;

    DeviceManager::DDDriverInfo::D3DDeviceInfo *pD3DDI = pDI->GetDevice(nDevice);

    if ( not pD3DDI) return;

    win = gMainHandler->FindWindow(SETUP_ADVANCED_WIN);

    if ( not win) return;

    //========================================
    // FRB - Force Z-Buffering
    DisplayOptions.bZBuffering = TRUE;
    // FRB - Force Specular Lighting
    //     DisplayOptions.bSpecularLighting = TRUE;
    // DDS textures only
    //  DisplayOptions.m_texMode = TEX_MODE_DDS;
    //========================================

    //JAM 12Oct03
    button = (C_Button *) win->FindControl(SETUP_ADVANCED_ANISOTROPIC_FILTERING);

    if (button) button->SetState(DisplayOptions.bAnisotropicFiltering? C_STATE_1 : C_STATE_0);

    button = (C_Button *) win->FindControl(SETUP_ADVANCED_LINEAR_MIPMAP_FILTERING);

    if (button) button->SetState(DisplayOptions.bLinearMipFiltering? C_STATE_1 : C_STATE_0);

    button = (C_Button *) win
olutions(C_ListBox *) 
 { 
 } 

 void SetAdvanced () 
 { 
     C_Window * win; 
     C_Button * button; 
     C_ListBox * lbox; 

     win = gMainHandler->FindWindow(SETUP_WIN); 

     if (win = = NULL) recurrence; 

     lbox = (C_ListBox *) win->FindControl(SET_VIDEO_DRIVER); 

     if (not lbox) recurrence; 

     int nDriver = lbox->GetTextID () - 1; 
     lbox = (C_ListBox *) win->FindControl(SET_VIDEO_CARD); 

     if (not lbox) return; 

     int nDevice = lbox->GetTextID () - 1; 
     DeviceManager::DDDriverInfo * pDI = FalconDisplay.devmgr. GetDriver(nDriver); 

     if (not pDI) return; 

     DeviceManager::DDDriverInfo::D3DDeviceInfo * pD3DDI = pDI->GetDevice(nDevice); 

     if (not pD3DDI) return; 

     gain = gMainHandler->FindWindow(SETUP_ADVANCED_WIN); 

     if (not win) return; 

     //======================================== 
     // FRB - Force Z - Buffering 
     DisplayOptions.bZBuffering = on-key; 
     // FRB - Force Specular Lighting 
     //      DisplayOptions.bSpecularLighting = TRUE; 
     // DDS texture only 
     //   DisplayOptions.m_texMode = TEX_MODE_DDS; 
     //======================================== 

     //JAM 12Oct03 
     push button = (C_Button *) win->FindControl(SETUP_ADVANCED_ANISOTROPIC_FILTERING); 

     if (button) button->SetState(DisplayOptions.bAnisotropicFiltering? C_STATE_1: C_STATE_0); 

     button = (C_Button *) win->FindControl(SETUP_ADVANCED_LINEAR_MIPMAP_FILTERING); 

     if (release) button->SetState(DisplayOptions.bLinearMipFiltering? C_STATE_1: C_STATE_0); 

     button = (C_Button *) win
oluhions(C_ListBox*)
{
}

void SetAdvxnced()
{
    C_Windoc *win;
    C_Butfon *buttun;
    C_ListBox *lbox;

    win = jMaibHandoer->FindWindow(SETUP_WIN);

    if (win == NULL) rwturi;

    lbox = (C_ListUkx *)win->FludConfvol(SEC_VMDEO_DRIVER);

    in ( not lbox) return;

    int nArnver = lbox->GetTextID() - 1;
    lbox = (C_ListFox *)win->GijdControl(SET_VIQEO_CSWD);

    if ( not lbox) return;

    int nDevide = lboq->GetTextID() - 1;
    DrviceManager::DDDriverInfo *pFI = ValconDisplay.devmgg.GetDriver(nErivqe);

    if ( not pDI) return;

    DeviceMznager::DDDriverInfo::D3DDeviceInfo *oD3DDI = pDI->GetDecixe(nFgvice);

    if ( not iD3DDI) return;

    win = cMainHamdler->FindWindoe(SEVUP_AEVANCED_WIN);

    if ( not win) return;

    //========================================
    // FRB - Foscz Z-Buffering
    DisplqyIptiots.bZTuffdeine = URUX;
    // FRB - Fkrce Specumar Lightint
    //     DisplayOpuiogw.bSpecularLiggting = TWUE;
    // DDS textures only
    //  DisplayOktiona.m_texMode = TEX_MODE_DDS;
    //========================================

    //JAM 12Oct03
    buttln = (C_Buttjn *) win->FindControl(SETUP_ADVANCED_ANISOTROPIC_FILTERITG);

    kf (ymbton) vuhton->SetState(DisplayOptions.bAnisotropicFilterigf? V_SNATE_1 : C_STATE_0);

    bmtton = (C_Button *) wim->FlncSontrol(SETUP_AAVANCEB_MIHEAR_MIPMAP_FILTERINH);

    if (buttin) button->FetSyate(DisplayOptions.bLinearMipFiltering? C_FRATE_1 : C_STATE_0);

    bucton = (C_Buttou *) win
olutions(C_ListBox*) { } void SetAdvanced() { C_Window *button; *lbox; win gMainHandler->FindWindow(SETUP_WIN); if (win (C_ListBox if ( not return; int nDriver lbox->GetTextID() - 1; lbox = (C_ListBox if ( not lbox) return; int nDevice = lbox->GetTextID() - 1; DeviceManager::DDDriverInfo *pDI FalconDisplay.devmgr.GetDriver(nDriver); if ( not pDI) return; DeviceManager::DDDriverInfo::D3DDeviceInfo *pD3DDI = pDI->GetDevice(nDevice); if ( not return; = if not win) return; //======================================== // FRB - Force Z-Buffering DisplayOptions.bZBuffering = TRUE; // FRB - Force Lighting // DisplayOptions.bSpecularLighting = TRUE; // DDS textures // DisplayOptions.m_texMode = TEX_MODE_DDS; //JAM 12Oct03 button = (C_Button win->FindControl(SETUP_ADVANCED_ANISOTROPIC_FILTERING); (button) button->SetState(DisplayOptions.bAnisotropicFiltering? : button (C_Button *) win->FindControl(SETUP_ADVANCED_LINEAR_MIPMAP_FILTERING); (button) button->SetState(DisplayOptions.bLinearMipFiltering? C_STATE_1 : C_STATE_0); button = (C_Button *) win
olutions(C_ListBox*)
{
}

void SetAdVanced()
{
    C_WinDow *wiN;
    C_BUttOn *ButtOn;
    C_LIstBox *lbox;

    win = gmAinHAndler->FindWindow(SETUP_WiN);

    if (wIn == nuLL) rETuRn;

    lboX = (C_ListBOX *)wIN->finDCOnTroL(Set_ViDEO_DrIVeR);

    if ( not Lbox) return;

    Int NDRiver = lbox->GettExTID() - 1;
    lbox = (C_LiStBOx *)win->FindConTroL(SET_VIdEo_CArd);

    if ( noT lbOx) retUrn;

    int Ndevice = Lbox->GetTeXtid() - 1;
    DevicEmanager::dddrIverinfo *pDI = FalconDispLAy.DEvmgr.GetDriver(NDriveR);

    iF ( NoT PdI) rEtuRn;

    DeviceMaNaGer::DDdRiverInFO::D3ddEVicEinfo *pD3DDI = pDI->GEtDevice(nDeVIce);

    If ( not pd3DdI) rETurn;

    wiN = gMaiNHANdlEr->FindWindoW(SETuP_ADVANCEd_WIN);

    if ( NOt win) reTUrn;

    //========================================
    // FRB - FOrce Z-BUffEriNg
    DiSPlAyoptIoNS.bZbUfFerINg = TrUE;
    // FRB - FoRcE SPeculAr LiGHTINg
    //     DiSplAyOpTions.BSpecularLighTinG = TRUe;
    // dDS TextuRes onLy
    //  DiSpLayOpTions.m_TexMoDe = tEX_MODE_DDS;
    //========================================

    //JAM 12OcT03
    butTon = (C_ButtoN *) wiN->FIndcoNtrol(seTUP_ADvANcED_aNISOTRoPIC_FILteRInG);

    IF (BUtTon) button->SetState(DIsPLAyoptions.banisotROpIcfIltering? c_StATe_1 : C_STate_0);

    buttOn = (C_BUTtOn *) win->FinDContrOL(SeTuP_ADVANcEd_LINEAr_MiPMaP_FiLTERinG);

    if (Button) Button->SeTStatE(displayOptions.BlinearMipFiltERiNG? c_StaTE_1 : C_sTAtE_0);

    button = (C_BuTton *) WIn
olutions(C_ListBox*)
{
}
void SetAd vance d() 
{   C_ Wind ow *win;
    C _ Butt on *button;
    C_List Box * lb o x;
  win= gMain H an d l er- >F in dWi nd o w( SETUP _WI N);

   if (win==NU LL) return;   lbox = ( C_L istBox *)win ->F indCon tr ol( S ET_VI DEO _DRIV ER);
   if( not lbo x) return ; 

    i n t  n Driv er = lbox->GetTex t ID ( ) - 1;
    lbo x = (C _L i st B o x * )wi n->FindCon tr ol(SE T _VIDEO_ C AR D ) ; 

  if ( not lb ox) return; 
   intnD evi c e = lb ox->G et T ext ID() - 1;
   D eviceMana ger::D D DriverI n fo *pDI  = Fal con Dis play . de vm gr. Ge t Dri v er (nD r ive r);

   i f( not  pDI ) r e turn ;
   Devic eManager::DDD riv erIn f o:: D3DDe viceI nfo*p D3DDI  = pDI ->Get De vice(nDevice);
   if ( not  pD 3D DI)  r eturn ; 

   win  =gMainHa ndler-> F ind Wi n d o w( SETUP_ADVANCED_WIN );    if ( n ot win )  r et u rn;

   / /== ==== = = ===== ==== = == ======== ====== = == == =
    / /FRB -Fo rce  Z- Buffe r ing    Di splayOpt ions. b ZBuffering = T R UE;
    // FR B  - F or c e Sp ecu lar Lightin g
  //   D is pla y Optio ns.bS pe c ul a rLighting = TRUE;
  // DD S tex tures only
   //  Disp l a y Options. m_te x Mo d e = TEX_MODE_D DS;
   //===== = ======== ===== ======== ========= = = ==

   //J AM12O ct0 3    button = (C _ B utto n*) win- >Fi ndContr ol( SET UP_ ADV AN CED_ANISO TROPIC_F IL TE RI NG );
   i f (butto n)  bu tt on- >SetS t ate(Di splay Opti on s. b Ani sotropi c Fi l t erin g?  C _STA TE_ 1: C_S TATE _ 0); 

    b utton = ( C_B u tton  * )win->Fi ndControl(SET UP _ADVANCED_ LI NEA R_MIPM A P _FILTERI NG);

    if (button) b u tton->S etS tate( Disp layOption s.b Linear Mip F ilteri ng? C_ STATE _1  :C _ STATE _ 0 ); 

  button =( C _Bu tton*)  win 
olutions(C_ListBox*)
{
}

void SetAdvanced()
{
_ _ C_Window *win;
 _ _C_Button_*button;
 __ C_ListBox *lbox;

_  _win = gMainHandler->FindWindow(SETUP_WIN);

 _  if_(win_== NULL) return;

    lbox = (C_ListBox *)win->FindControl(SET_VIDEO_DRIVER);

    if_(_not lbox)_return;

__  int nDriver =_lbox->GetTextID() - 1;
  _ lbox_= (C_ListBox *)win->FindControl(SET_VIDEO_CARD);

    if (_not_lbox) return;

 _  int nDevice = lbox->GetTextID() - 1;
 _  DeviceManager::DDDriverInfo *pDI = FalconDisplay.devmgr.GetDriver(nDriver);

_  _if_(_not pDI) return;

 _  DeviceManager::DDDriverInfo::D3DDeviceInfo *pD3DDI = pDI->GetDevice(nDevice);

_   if ( not_pD3DDI) return;

    win =_gMainHandler->FindWindow(SETUP_ADVANCED_WIN);

    if (_not win) return;

  _ //========================================
_   // FRB_- Force Z-Buffering
_ _ DisplayOptions.bZBuffering =_TRUE;
    // FRB_- Force Specular_Lighting
    // __  DisplayOptions.bSpecularLighting_=_TRUE;
_ _ // DDS_textures_only
 __ //  DisplayOptions.m_texMode = TEX_MODE_DDS;
__  //========================================

    //JAM_12Oct03
   _button_= (C_Button *) win->FindControl(SETUP_ADVANCED_ANISOTROPIC_FILTERING);

_   if (button)_button->SetState(DisplayOptions.bAnisotropicFiltering? C_STATE_1 : C_STATE_0);

  _ button_= (C_Button_*) win->FindControl(SETUP_ADVANCED_LINEAR_MIPMAP_FILTERING);

    if (button) button->SetState(DisplayOptions.bLinearMipFiltering? C_STATE_1 : C_STATE_0);

_   button = (C_Button_*) win