aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorace20022 <ace20022@ymail.com>2013-08-16 09:55:01 +0200
committerace20022 <ace20022@ymail.com>2013-08-25 22:32:03 +0200
commit03991421554d5f8544daf49b10e2242df440bd14 (patch)
tree89977e303b3957bf8b86e2cf3d4d430432e9edd4
parentc43762da5ead2812301de90edfc20d41c0d6b508 (diff)
[DirectXGraphics] Checking if unsigned variable 'foo' is less than zero.
-rw-r--r--xbmc/guilib/DirectXGraphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/guilib/DirectXGraphics.cpp b/xbmc/guilib/DirectXGraphics.cpp
index fdcf8009d3..47efb298f6 100644
--- a/xbmc/guilib/DirectXGraphics.cpp
+++ b/xbmc/guilib/DirectXGraphics.cpp
@@ -117,7 +117,7 @@ bool IsSwizzledFormat(XB_D3DFORMAT format)
// Currently only works for 32bit and 8bit textures, with power of 2 width and height
void Unswizzle(const void *src, unsigned int depth, unsigned int width, unsigned int height, void *dest)
{
- if (height <= 0 || width <= 0)
+ if (height == 0 || width == 0)
return;
for (UINT y = 0; y < height; y++)