Ignore:
Timestamp:
11/17/03 13:50:48 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/main/MStarguider.cc

    r2278 r2518  
    176176    fInterpol->AddEntry("2",   IDM_kInterpol2);
    177177    fInterpol->AddEntry("Off", IDM_kInterpol1);
    178     fInterpol->CheckEntry(IDM_kInterpol1);
    179178    fInterpol->Associate(this);
    180179    fList->Add(fInterpol);
    181180
    182     fIntRate = 1;
     181    TString disp=gVirtualX->DisplayName();
     182    if (disp.First(':')>0)
     183        disp=disp(0, disp.First(':'));
     184
     185    if (disp.IsNull() || disp==(TString)"localhost")
     186    {
     187        fInterpol->CheckEntry(IDM_kInterpol1);
     188        fIntRate = 1;
     189    }
     190    else
     191    {
     192        fInterpol->CheckEntry(IDM_kInterpol125);
     193        fIntRate = 125;
     194    }
    183195
    184196    fSetup = new MGPopupMenu(p);
     
    347359    gVirtualX->GrabButton(fId, kButton2, 0, 0, 0, 0, kTRUE);
    348360
    349     fTimer=new TTimer(this, 1000/25); // 100ms
     361    fTimer=new TTimer(this, 1000/25); // 40ms
    350362    fTimer->TurnOn();
    351363
Note: See TracChangeset for help on using the changeset viewer.