mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
made int division float division
This commit is contained in:
parent
26170e4fdb
commit
6fec6514fa
1 changed files with 1 additions and 1 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue