Changeset 1210 for trunk/MagicSoft/Mars/mgui
- Timestamp:
- 01/22/02 19:07:32 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgui/MCamDisplay.cc
r1203 r1210 291 291 // first treat the over- and under-flows 292 292 // 293 const Float_t maxcolidx = 49.0;293 const Int_t maxcolidx = 49; 294 294 295 295 if (val >= fMaxPhe) … … 303 303 // 304 304 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); 306 306 307 307 return gStyle->GetColorPalette(colidx);
Note:
See TracChangeset
for help on using the changeset viewer.