From 7f516eaa2cb051f3383280d7d190d405901e3885 Mon Sep 17 00:00:00 2001 From: Edward Rudd Date: Fri, 14 May 2010 14:14:24 -0400 Subject: [PATCH] fix the casts so it ompiles under recent visual studio. http://www.frictionalgames.com/forum/user-7373.html --- sources/impl/SDLTexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/impl/SDLTexture.cpp b/sources/impl/SDLTexture.cpp index cf0ee7c5..44e11d5f 100644 --- a/sources/impl/SDLTexture.cpp +++ b/sources/impl/SDLTexture.cpp @@ -608,7 +608,7 @@ namespace hpl { int lOldW = mlWidth; int lOldH = mlHeight; - int lSizeDiv = (int)pow((int)2,(int)mlSizeLevel); + int lSizeDiv = (int)pow((float)2,(int)mlSizeLevel); mlWidth /= lSizeDiv; mlHeight /= lSizeDiv;