Ignore:
Timestamp:
01/22/02 19:07:32 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mgui/MCamDisplay.cc

    r1203 r1210  
    291291    //   first treat the over- and under-flows
    292292    //
    293     const Float_t maxcolidx = 49.0;
     293    const Int_t maxcolidx = 49;
    294294
    295295    if (val >= fMaxPhe)
     
    303303    //
    304304    const Float_t ratio  = (val-fMinPhe) / (fMaxPhe-fMinPhe);
    305     const Int_t   colidx = (Int_t)(maxcolidx*ratio + .5);
     305    const Int_t   colidx = (Int_t)(ratio*maxcolidx + .5);
    306306
    307307    return gStyle->GetColorPalette(colidx);
Note: See TracChangeset for help on using the changeset viewer.