diff options
author | Johannes Schickel | 2013-01-09 06:57:23 +0100 |
---|---|---|
committer | Johannes Schickel | 2013-01-09 07:24:37 +0100 |
commit | fe1a7794417456403a4bd38b8ae3e627a86b892e (patch) | |
tree | 1d01b24f2c22dd1344e7a6a19a238b294d76119a /engines/sword25 | |
parent | 3d9d7ab4f88ebeee914b423c21b70d410858f99f (diff) | |
download | scummvm-rg350-fe1a7794417456403a4bd38b8ae3e627a86b892e.tar.gz scummvm-rg350-fe1a7794417456403a4bd38b8ae3e627a86b892e.tar.bz2 scummvm-rg350-fe1a7794417456403a4bd38b8ae3e627a86b892e.zip |
SWORD25: Silence C++11 narrowing warnings.
Diffstat (limited to 'engines/sword25')
-rw-r--r-- | engines/sword25/gfx/graphicengine.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sword25/gfx/graphicengine.cpp b/engines/sword25/gfx/graphicengine.cpp index 6f5da32bc4..216d801f3e 100644 --- a/engines/sword25/gfx/graphicengine.cpp +++ b/engines/sword25/gfx/graphicengine.cpp @@ -376,10 +376,10 @@ bool GraphicEngine::saveThumbnailScreenshot(const Common::String &filename) { void GraphicEngine::ARGBColorToLuaColor(lua_State *L, uint color) { lua_Number components[4] = { - (color >> 16) & 0xff, // Rot - (color >> 8) & 0xff, // Gr�n - color & 0xff, // Blau - color >> 24, // Alpha + (lua_Number)((color >> 16) & 0xff), // Rot + (lua_Number)((color >> 8) & 0xff), // Gr�n + (lua_Number)(color & 0xff), // Blau + (lua_Number)(color >> 24), // Alpha }; lua_newtable(L); |