mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-02 17:00:19 +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 g = (rgba >> 8) & 0xff;
|
||||||
var b = (rgba >> 0) & 0xff;
|
var b = (rgba >> 0) & 0xff;
|
||||||
var c;
|
var c;
|
||||||
if (a == 0)
|
if (a == 255)
|
||||||
c = "rgb(" + r + "," + g + "," + b + ")";
|
c = "rgb(" + r + "," + g + "," + b + ")";
|
||||||
else
|
else
|
||||||
c = "rgba(" + r + "," + g + "," + b + "," + (a / 255.0) + ")";
|
c = "rgba(" + r + "," + g + "," + b + "," + (a / 255.0) + ")";
|
||||||
|
Loading…
Reference in New Issue
Block a user