From 3fe377be4e860f4ec9664688489e4e22090fc29d Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 25 Dec 2010 02:33:41 +0200 Subject: builds on both platforms --- src/irrlichtwrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/irrlichtwrapper.cpp') diff --git a/src/irrlichtwrapper.cpp b/src/irrlichtwrapper.cpp index fc9f96b18..30de6846c 100644 --- a/src/irrlichtwrapper.cpp +++ b/src/irrlichtwrapper.cpp @@ -163,7 +163,7 @@ video::ITexture * ProgressBarTextureMod::make(video::ITexture *original, u32 barwidth = size.Width - barpad_x*2; v2u32 barpos(barpad_x, size.Height - barheight - barpad_y); - u32 barvalue_i = round((float)barwidth * value); + u32 barvalue_i = (u32)(((float)barwidth * value) + 0.5); video::SColor active(255,255,0,0); video::SColor inactive(255,0,0,0); -- cgit v1.2.3