From 172056e7598d3447c682a694d824041076f3255e Mon Sep 17 00:00:00 2001 From: "chirs241097@gmail.com" Date: Mon, 24 Feb 2014 03:25:05 +0000 Subject: M trunk/CHANGELOG.TXT M trunk/background.h M trunk/effects.h M trunk/global.h M trunk/hge/CxImage/ximagif.cpp M trunk/hge/CxImage/ximaint.cpp M trunk/hge/CxImage/ximapng.cpp M trunk/hge/graphics.cpp M trunk/hge/input.cpp M trunk/hge/resource.cpp M trunk/hge/sound.cpp M trunk/hge/system.cpp M trunk/hgehelp/hgefont.cpp M trunk/levels.h M trunk/libcgh.h M trunk/libcghEx.cpp M trunk/menuitem.cpp M trunk/menuitem.h M trunk/menus.h M trunk/music.h M trunk/scorec.h M trunk/scoresystem.h M trunk/towernbullet.h --- hge/graphics.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'hge/graphics.cpp') diff --git a/hge/graphics.cpp b/hge/graphics.cpp index 20fc634..0bab75a 100644 --- a/hge/graphics.cpp +++ b/hge/graphics.cpp @@ -589,7 +589,7 @@ static inline bool _IsPowerOfTwo(const GLuint x) static inline GLuint _NextPowerOfTwo(GLuint x) { x--; - for (int i = 1; i < (sizeof(GLuint) * 8); i *= 2) + for (unsigned i = 1; i < (sizeof(GLuint) * 8); i <<= 1) x |= x >> i; return x + 1; } @@ -859,7 +859,7 @@ DWORD * CALL HGE_Impl::Texture_Lock(HTEXTURE tex, bool bReadOnly, int left, int { int w, h; pTex->pixels = _DecodeImage(data, pTex->filename, size, w, h); - if ((w != pTex->width) || (h != pTex->height)) // yikes, file changed? + if ((w != (int)pTex->width) || (h != (int)pTex->height)) // yikes, file changed? { delete[] pTex->pixels; pTex->pixels = NULL; @@ -889,9 +889,9 @@ DWORD * CALL HGE_Impl::Texture_Lock(HTEXTURE tex, bool bReadOnly, int left, int // !!! FIXME: do something with this? assert(width > 0); - assert(width <= pTex->width); + assert(width <= (int)pTex->width); assert(height > 0); - assert(height <= pTex->height); + assert(height <= (int)pTex->height); assert(left >= 0); assert(left <= width); assert(top >= 0); @@ -1345,7 +1345,7 @@ void HGE_Impl::_Resize(int width, int height) void HGE_Impl::_GfxDone() { - CRenderTargetList *target=pTargets; + //CRenderTargetList *target=pTargets; while(textures) Texture_Free(textures->tex); while(pTargets) Target_Free((HTARGET) pTargets); -- cgit v1.2.3