mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-30 15:31:34 +00:00
Merge branch 'broadway-alpha-colors' into 'master'
broadway: Correct handling of opaque colors See merge request GNOME/gtk!2484
This commit is contained in:
commit
eef1818cee
@ -396,7 +396,7 @@ TransformNodes.prototype.decode_color = function() {
|
||||
var g = (rgba >> 8) & 0xff;
|
||||
var b = (rgba >> 0) & 0xff;
|
||||
var c;
|
||||
if (a == 0)
|
||||
if (a == 255)
|
||||
c = "rgb(" + r + "," + g + "," + b + ")";
|
||||
else
|
||||
c = "rgba(" + r + "," + g + "," + b + "," + (a / 255.0) + ")";
|
||||
|
Loading…
Reference in New Issue
Block a user