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 authored and madame-rachelle committed Oct 9, 2024
1 parent 65bbebc commit 15623a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/startscreen/startscreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -699,8 +699,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 15623a8

Please sign in to comment.