]> git.sur5r.net Git - cc65/blobdiff - src/sp65/color.h
Rearrange the code to avoid a warning from the Watcom compiler.
[cc65] / src / sp65 / color.h
index 6502bc9ffd6c7d994fb7f5ab5d9b83ff8fc73675..3646837f54ee16f9649ae9176b5d73b29ff8af61 100644 (file)
@@ -60,6 +60,36 @@ struct Color {
 /*****************************************************************************/
 
 
+                                                             
+#if defined(HAVE_INLINE)
+
+INLINE Color RGB (unsigned char R, unsigned char G, unsigned char B)
+/* Generate a color value */
+{
+    Color C;
+    C.R = R; C.G = G; C.B = B; C.A = 0;
+    return C;
+}
+
+INLINE Color RGBA (unsigned char R, unsigned char G, unsigned char B, unsigned char A)
+/* Generate a color value */
+{
+    Color C;
+    C.R = R; C.G = G; C.B = B; C.A = A;
+    return C;
+}
+
+#else
+
+Color RGB (unsigned char R, unsigned char G, unsigned char B);
+/* Generate a color value */
+
+Color RGBA (unsigned char R, unsigned char G, unsigned char B, unsigned char A);
+/* Generate a color value */
+
+#endif
+
+
 
 /* End of color.h */