made int division float division
This commit is contained in:
@@ -226,7 +226,7 @@ void Scrollbar::paintEvent(QPaintEvent *)
|
||||
|
||||
int w = this->width();
|
||||
float y = 0;
|
||||
float dY = (this->height() - MIN_THUMB_HEIGHT) / snapshotLength;
|
||||
float dY = (float)(this->height() + MIN_THUMB_HEIGHT) / (float)snapshotLength;
|
||||
int highlightHeight = std::ceil(dY);
|
||||
|
||||
for (int i = 0; i < snapshotLength; i++) {
|
||||
|
||||
Reference in New Issue
Block a user