Mercurial > hg > svgui
comparison widgets/Thumbwheel.cpp @ 249:e6d0b097d102 sv1-1.0rc1
* more compile warning fixes
author | Chris Cannam |
---|---|
date | Mon, 30 Apr 2007 14:06:45 +0000 |
parents | 6969f21da18a |
children | c492902dba40 |
comparison
equal
deleted
inserted
replaced
248:28c8e8e3c537 | 249:e6d0b097d102 |
---|---|
481 | 481 |
482 // total number of notches on the entire wheel | 482 // total number of notches on the entire wheel |
483 int notches = 25; | 483 int notches = 25; |
484 | 484 |
485 // radius of the wheel including invisible part | 485 // radius of the wheel including invisible part |
486 int radius = w / 2 + 2; | 486 int radius = int(w / 2 + 2); |
487 | 487 |
488 for (int i = 0; i < notches; ++i) { | 488 for (int i = 0; i < notches; ++i) { |
489 | 489 |
490 float a0 = (2.f * M_PI * i) / notches + radians; | 490 float a0 = (2.f * M_PI * i) / notches + radians; |
491 float a1 = a0 + M_PI / (notches * 2); | 491 float a1 = a0 + M_PI / (notches * 2); |