From: tavmjong Date: Tue, 11 Aug 2009 13:02:58 +0000 (+0000) Subject: Maximum value of alpha is 255 (not 256). X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=276cb9f2911717ca435c14fc45a7291f68555388;p=inkscape.git Maximum value of alpha is 255 (not 256). --- diff --git a/src/extension/internal/javafx-out.cpp b/src/extension/internal/javafx-out.cpp index 417755e19..a2f387406 100644 --- a/src/extension/internal/javafx-out.cpp +++ b/src/extension/internal/javafx-out.cpp @@ -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; }