Alpha for rgba() is from 0.0 to 1.0, not 0 to 255.

This commit is contained in:
Michael Jumper
2011-08-09 16:08:18 -07:00
parent d0155cdf52
commit 6c41eb5aad

View File

@@ -405,7 +405,7 @@ Guacamole.Layer = function(width, height) {
scheduleTask(function() { scheduleTask(function() {
if (layer.autosize != 0) fitRect(x, y, w, h); if (layer.autosize != 0) fitRect(x, y, w, h);
displayContext.fillStyle = "rgba(" displayContext.fillStyle = "rgba("
+ r + "," + g + "," + b + "," + a + ")"; + r + "," + g + "," + b + "," + a / 255 + ")";
displayContext.fillRect(x, y, w, h); displayContext.fillRect(x, y, w, h);
}); });
}; };