diff --git a/guacamole-common-js/src/main/webapp/modules/Display.js b/guacamole-common-js/src/main/webapp/modules/Display.js index 853c69acc..41f04c7b3 100644 --- a/guacamole-common-js/src/main/webapp/modules/Display.js +++ b/guacamole-common-js/src/main/webapp/modules/Display.js @@ -512,11 +512,17 @@ Guacamole.Display = function() { * Draws the specified image at the given coordinates. The image specified * must already be loaded. * - * @param {Guacamole.Layer} layer The layer to draw upon. - * @param {Number} x The destination X coordinate. - * @param {Number} y The destination Y coordinate. - * @param {Image} image The image to draw. Note that this is an Image - * object - not a URL. + * @param {Guacamole.Layer} layer + * The layer to draw upon. + * + * @param {Number} x + * The destination X coordinate. + * + * @param {Number} y + * The destination Y coordinate. + * + * @param {CanvasImageSource} image + * The image to draw. Note that this not a URL. */ this.drawImage = function(layer, x, y, image) { scheduleTask(function __display_drawImage() { diff --git a/guacamole-common-js/src/main/webapp/modules/Layer.js b/guacamole-common-js/src/main/webapp/modules/Layer.js index 5384d2c74..cd87d8d1d 100644 --- a/guacamole-common-js/src/main/webapp/modules/Layer.js +++ b/guacamole-common-js/src/main/webapp/modules/Layer.js @@ -319,10 +319,14 @@ Guacamole.Layer = function(width, height) { * Draws the specified image at the given coordinates. The image specified * must already be loaded. * - * @param {Number} x The destination X coordinate. - * @param {Number} y The destination Y coordinate. - * @param {Image} image The image to draw. Note that this is an Image - * object - not a URL. + * @param {Number} x + * The destination X coordinate. + * + * @param {Number} y + * The destination Y coordinate. + * + * @param {CanvasImageSource} image + * The image to draw. Note that this is not a URL. */ this.drawImage = function(x, y, image) { if (layer.autosize) fitRect(x, y, image.width, image.height);