From 4e629f2e24fc8e2d77106597403efaea9f952b93 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 11 Jan 2004 08:39:00 +0000 Subject: [PATCH] warnings --- stepmania/src/ScreenOptions.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stepmania/src/ScreenOptions.cpp b/stepmania/src/ScreenOptions.cpp index 8f840a8fa2..9a97b8bc3d 100644 --- a/stepmania/src/ScreenOptions.cpp +++ b/stepmania/src/ScreenOptions.cpp @@ -260,7 +260,7 @@ void ScreenOptions::Init( InputMode im, OptionRowData OptionRows[], int iNumOpti row.m_Underline[p].push_back( ul ); ul->Load( (PlayerNumber)p, true ); ul->SetX( fX ); - ul->SetWidth( (int)fItemWidth ); + ul->SetWidth( truncf(fItemWidth) ); } fX += fItemWidth/2 + ITEMS_GAP_X; @@ -302,7 +302,7 @@ void ScreenOptions::Init( InputMode im, OptionRowData OptionRows[], int iNumOpti if( optline.bOneChoiceForAllPlayers ) { - bt->SetX( (int)(ITEM_X[0]+ITEM_X[1])/2 ); // center the item + bt->SetX( truncf((ITEM_X[0]+ITEM_X[1])/2) ); // center the item break; // only initialize one item since it's shared } else @@ -323,8 +323,8 @@ void ScreenOptions::Init( InputMode im, OptionRowData OptionRows[], int iNumOpti ul->Load( (PlayerNumber)p, true ); float fX = optline.bOneChoiceForAllPlayers ? textItems[0]->GetX() : textItems[p]->GetX(); float fWidth = optline.bOneChoiceForAllPlayers ? textItems[0]->GetZoomedWidth() : textItems[p]->GetZoomedWidth(); - ul->SetX( (int)fX ); - ul->SetWidth( (int)fWidth ); + ul->SetX( truncf(fX) ); + ul->SetWidth( truncf(fWidth) ); } } }