Commit 3ac05145 authored by hybrid's avatar hybrid

copy'n'paste typo and signedness fixed

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1678 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 3bd70324
...@@ -99,19 +99,19 @@ namespace core ...@@ -99,19 +99,19 @@ namespace core
u32 j=1; u32 j=1;
if (requirePowerOfTwo) if (requirePowerOfTwo)
{ {
while (i<Width) while (i<(u32)Width)
i<<=1; i<<=1;
if (!larger && i!=1) if (!larger && i!=1)
i>>=1; i>>=1;
while (j<Width) while (j<(u32)Height)
j<<=1; j<<=1;
if (!larger && j!=1) if (!larger && j!=1)
j>>=1; j>>=1;
} }
else else
{ {
i=Width; i=(u32)Width;
j=Height; j=(u32)Height;
} }
if (requireSquare) if (requireSquare)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment