projects
/
guacamole-common-js.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Alpha for rgba() is from 0.0 to 1.0, not 0 to 255.
[guacamole-common-js.git]
/
src
/
main
/
resources
/
layer.js
diff --git
a/src/main/resources/layer.js
b/src/main/resources/layer.js
index
64ccd03
..
eb0ba7e
100644
(file)
--- a/
src/main/resources/layer.js
+++ b/
src/main/resources/layer.js
@@
-405,7
+405,7
@@
Guacamole.Layer = function(width, height) {
scheduleTask(function() {
if (layer.autosize != 0) fitRect(x, y, w, h);
displayContext.fillStyle = "rgba("
- + r + "," + g + "," + b + "," + a + ")";
+ + r + "," + g + "," + b + "," + a / 255 + ")";
displayContext.fillRect(x, y, w, h);
});
};