Skip to content

Commit

Permalink
avoid floats in integer math.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Oct 9, 2024
1 parent 1dedb43 commit 27dc590
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/common/startscreen/startscreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -692,8 +692,8 @@ void FStartScreen::Render(bool force)
twod->OnFrameDone();
}
auto newtime = I_msTime();
if ((newtime - nowtime) * 2.0 > minwaittime) // slow down drawing the start screen if we're on a slow GPU!
minwaittime = (newtime - nowtime) * 2.0;
if ((newtime - nowtime) * 2 > minwaittime) // slow down drawing the start screen if we're on a slow GPU!
minwaittime = (newtime - nowtime) * 2;
}

FImageSource* CreateStartScreenTexture(FBitmap& srcdata);
Expand Down

0 comments on commit 27dc590

Please sign in to comment.