comparison layer/TimeRulerLayer.cpp @ 380:a6408c382616

* The fix in rev 1002 had the nasty side-effect of breaking part of the fix in rev 972. Re-fixing.
author Chris Cannam
date Tue, 29 Apr 2008 11:07:14 +0000
parents e1a9e478b7f2
children f4960f8ce798
comparison
equal deleted inserted replaced
379:036b75ddcd3f 380:a6408c382616
316 316
317 paint.setPen(greyColour); 317 paint.setPen(greyColour);
318 318
319 for (int i = 1; i < ticks; ++i) { 319 for (int i = 1; i < ticks; ++i) {
320 320
321 dms = ms - incms + (i * double(incms)) / ticks; 321 dms = ms + (i * double(incms)) / ticks;
322 frame = lrint((dms * sampleRate) / 1000.0); 322 frame = lrint((dms * sampleRate) / 1000.0);
323 frame /= v->getZoomLevel(); 323 frame /= v->getZoomLevel();
324 frame *= v->getZoomLevel(); // exact pixel as above 324 frame *= v->getZoomLevel(); // exact pixel as above
325 325
326 x = v->getXForFrame(frame); 326 x = v->getXForFrame(frame);