]> git.mxchange.org Git - simgear.git/commitdiff
Fix a Clang warning in Shiva.
authorJames Turner <zakalawe@mac.com>
Wed, 19 Sep 2012 14:55:49 +0000 (15:55 +0100)
committerThomas Geymayer <tomgey@gmail.com>
Wed, 24 Oct 2012 22:44:48 +0000 (00:44 +0200)
simgear/canvas/ShivaVG/src/shParams.c

index 2535c1497d60d483869f464752dee612a1d1a8ce..79eb7ee56b3b36ec15a99313641217332342d877 100644 (file)
@@ -132,10 +132,10 @@ int shIsEnumValid(SHint type, VGint val)
             val == VG_COLOR_RAMP_SPREAD_REFLECT);
     
   case VG_PAINT_PATTERN_TILING_MODE:
-    return (VG_TILE_FILL ||
-            VG_TILE_PAD ||
-            VG_TILE_REPEAT ||
-            VG_TILE_REFLECT);
+    return (val == VG_TILE_FILL ||
+            val == VG_TILE_PAD ||
+            val == VG_TILE_REPEAT ||
+            val == VG_TILE_REFLECT);
     
   case VG_IMAGE_FORMAT:
     return (val >= VG_sRGBX_8888 &&