mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- silenced a few float truncation warnings that get printed in developer mode.
This commit is contained in:
parent
22b70dd222
commit
c3f9b4a5ee
6 changed files with 8 additions and 8 deletions
|
@ -1244,7 +1244,7 @@ class OptionMenuItemScaleSlider : OptionMenuItemSlider
|
|||
{
|
||||
drawLabel(indent, y, selected? OptionMenuSettings.mFontColorSelection : OptionMenuSettings.mFontColor);
|
||||
|
||||
int Selection = GetSliderValue();
|
||||
int Selection = int(GetSliderValue());
|
||||
if ((Selection == 0 || Selection == -1) && mClickVal <= 0)
|
||||
{
|
||||
String text = Selection == 0? TextZero : Selection == -1? TextNegOne : "";
|
||||
|
@ -1260,7 +1260,7 @@ class OptionMenuItemScaleSlider : OptionMenuItemSlider
|
|||
|
||||
override bool MouseEvent(int type, int x, int y)
|
||||
{
|
||||
int value = GetSliderValue();
|
||||
int value = int(GetSliderValue());
|
||||
switch (type)
|
||||
{
|
||||
case Menu.MOUSE_Click:
|
||||
|
|
|
@ -192,7 +192,7 @@ class StatusScreen abstract play version("2.5")
|
|||
{
|
||||
let size = TexMan.GetScaledSize(pinfo.mPatch);
|
||||
screen.DrawTexture(pinfo.mPatch, true, midx - size.X * CleanXfac/2, y, DTA_CleanNoMove, true);
|
||||
return y + (size.Y * CleanYfac);
|
||||
return y + int(size.Y * CleanYfac);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -221,7 +221,7 @@ class CoopStatusScreen : StatusScreen
|
|||
// Use the readyico height if it's bigger.
|
||||
Vector2 readysize = TexMan.GetScaledSize(readyico);
|
||||
Vector2 readyoffset = TexMan.GetScaledOffset(readyico);
|
||||
height = readysize.Y - readyoffset.Y;
|
||||
height = int(readysize.Y - readyoffset.Y);
|
||||
maxiconheight = MAX(height, maxiconheight);
|
||||
height = SmallFont.GetHeight() * CleanYfac;
|
||||
lineheight = MAX(height, maxiconheight * CleanYfac);
|
||||
|
|
|
@ -158,7 +158,7 @@ class DeathmatchStatusScreen : StatusScreen
|
|||
// Use the readyico height if it's bigger.
|
||||
Vector2 readysize = TexMan.GetScaledSize(readyico);
|
||||
Vector2 readyoffset = TexMan.GetScaledOffset(readyico);
|
||||
height = readysize.Y - readyoffset.Y;
|
||||
height = int(readysize.Y - readyoffset.Y);
|
||||
maxiconheight = MAX(height, maxiconheight);
|
||||
height = SmallFont.GetHeight() * CleanYfac;
|
||||
lineheight = MAX(height, maxiconheight * CleanYfac);
|
||||
|
|
|
@ -774,9 +774,9 @@ class BaseStatusBar native ui
|
|||
}
|
||||
|
||||
String mapname = level.FormatMapName(crdefault);
|
||||
BrokenLines lines = SmallFont.BreakLines(mapname, SCREENWIDTH / scale.X);
|
||||
BrokenLines lines = SmallFont.BreakLines(mapname, int(SCREENWIDTH / scale.X));
|
||||
int numlines = lines.Count();
|
||||
int finalwidth = SmallFont.StringWidth(lines.StringAt(numlines-1)) * scale.X;
|
||||
int finalwidth = int(SmallFont.StringWidth(lines.StringAt(numlines-1)) * scale.X);
|
||||
|
||||
// calculate the top of the statusbar including any protrusion and transform it from status bar to screen space.
|
||||
double tmp, hres;
|
||||
|
|
|
@ -266,7 +266,7 @@ class StrifeStatusBar : BaseStatusBar
|
|||
{
|
||||
double tmp, h;
|
||||
[tmp, tmp, h] = StatusbarToRealCoords(0, 0, 8);
|
||||
DrawPopScreen (GetTopOfStatusBar() - h, TicFrac);
|
||||
DrawPopScreen (int(GetTopOfStatusBar() - h), TicFrac);
|
||||
}
|
||||
|
||||
DrawImage("INVBACK", (0, 168), DI_ITEM_OFFSETS);
|
||||
|
|
Loading…
Reference in a new issue