Remove a useless cast.

Detected by the upcoming gcc-4.8.
This commit is contained in:
Mark de Wever 2012-08-25 16:15:12 +00:00
parent 375f28136b
commit fc91554040

View File

@ -327,7 +327,7 @@ void scrollbar::handle_event(const SDL_Event& event)
move_position(grip_height_);
} else if (on_groove && e.button == SDL_BUTTON_MIDDLE) {
int y_dep = e.y - grip.y - grip.h/2;
int dep = y_dep * int(full_height_ - grip_height_)/ int(groove.h - grip.h);
int dep = y_dep * int(full_height_ - grip_height_)/ (groove.h - grip.h);
move_position(dep);
}
break;