Code

Maximum value of alpha is 255 (not 256).
authortavmjong <tavmjong@users.sourceforge.net>
Tue, 11 Aug 2009 13:02:58 +0000 (13:02 +0000)
committertavmjong <tavmjong@users.sourceforge.net>
Tue, 11 Aug 2009 13:02:58 +0000 (13:02 +0000)
src/extension/internal/javafx-out.cpp

index 417755e1973f19354dcae0a2367486cfa64ef04f..a2f3874062bf7dcb87c04110ae44db85f722f63f 100644 (file)
@@ -141,7 +141,7 @@ static JavaFXOutput::String rgba(guint32 rgba)
     unsigned int a = SP_RGBA32_A_U(rgba);
     char buf[80];
     snprintf(buf, 79, "Color.rgb(0x%02x, 0x%02x, 0x%02x, %s)",
-                           r, g, b, DSTR((double)a/256.0));
+                           r, g, b, DSTR((double)a/255.0));
     JavaFXOutput::String s = buf;
     return s;
 }