mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-07 09:54:55 +00:00
Fixed compiler warning.
This commit is contained in:
parent
8709078340
commit
28fe461a68
@ -66,7 +66,7 @@ void Scrollbar::Draw(ListWindow* list, Window* target) {
|
||||
|
||||
/* thumb */
|
||||
int thumbY = -1;
|
||||
if (itemCount > trackHeight) {
|
||||
if ((int) itemCount > trackHeight) {
|
||||
float percent = (float) pos.logicalIndex / (float) itemCount;
|
||||
thumbY = (int) ((float) trackHeight * percent) + trackMinY;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user