OSDN Git Service

[fixed] Color.toIntBits() so it returns int instead of float
authoreric.spitz2000@gmail.com <eric.spitz2000@gmail.com@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Sat, 9 Apr 2011 06:14:33 +0000 (06:14 +0000)
committereric.spitz2000@gmail.com <eric.spitz2000@gmail.com@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Sat, 9 Apr 2011 06:14:33 +0000 (06:14 +0000)
gdx/src/com/badlogic/gdx/graphics/Color.java

index 5626716..f4cf3bd 100644 (file)
@@ -213,9 +213,8 @@ public class Color {
         * @param a the alpha component, 0 - 255\r
         * @return the packed color as a 32-bit int\r
         */\r
-       public static float toIntBits (int r, int g, int b, int a) {\r
+       public static int toIntBits (int r, int g, int b, int a) {\r
                return (a << 24) | (b << 16) | (g << 8) | r;\r
-\r
        }\r
 \r
        /**\r