Fixed compiler warning.

This commit is contained in:
casey langen 2019-03-06 19:53:13 -08:00
parent 8709078340
commit 28fe461a68

View File

@ -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;
}