aboutsummaryrefslogtreecommitdiff
path: root/src/irrlichtwrapper.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2010-12-25 02:33:41 +0200
committerPerttu Ahola <celeron55@gmail.com>2010-12-25 02:33:41 +0200
commit3fe377be4e860f4ec9664688489e4e22090fc29d (patch)
treedd05ac1a18f42db79f811f67ec06fb4dcb5b02a3 /src/irrlichtwrapper.cpp
parent699d0e9a5efa555f4b4c7652a0ca571acf0afdb2 (diff)
downloadminetest-3fe377be4e860f4ec9664688489e4e22090fc29d.tar.gz
minetest-3fe377be4e860f4ec9664688489e4e22090fc29d.tar.bz2
minetest-3fe377be4e860f4ec9664688489e4e22090fc29d.zip
builds on both platforms
Diffstat (limited to 'src/irrlichtwrapper.cpp')
-rw-r--r--src/irrlichtwrapper.cpp2
1 files changed, 1 insertions, 1 deletions
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);