From 6c41eb5aadc0c75c4faa572e79cd942d6d8d209c Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 9 Aug 2011 16:08:18 -0700 Subject: [PATCH] Alpha for rgba() is from 0.0 to 1.0, not 0 to 255. --- guacamole-common-js/src/main/resources/layer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guacamole-common-js/src/main/resources/layer.js b/guacamole-common-js/src/main/resources/layer.js index 64ccd0329..eb0ba7e95 100644 --- a/guacamole-common-js/src/main/resources/layer.js +++ b/guacamole-common-js/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); }); };