Skip to content

Commit

Permalink
Do not discard division reminder
Browse files Browse the repository at this point in the history
  • Loading branch information
akortunov committed Nov 13, 2019
1 parent 238dcdb commit 5561eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/openmw/mwgui/windowbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ float BookWindowBase::adjustButton (char const * name)
Gui::ImageButton* button;
WindowBase::getWidget (button, name);
MyGUI::IntSize requested = button->getRequestedSize();
float scale = requested.height / button->getSize().height;
float scale = float(requested.height) / button->getSize().height;
MyGUI::IntSize newSize = requested;
newSize.width /= scale;
newSize.height /= scale;
Expand Down

0 comments on commit 5561eb5

Please sign in to comment.