diff --git a/js/core/Window.js b/js/core/Window.js index 00b27df..de6ba7b 100644 --- a/js/core/Window.js +++ b/js/core/Window.js @@ -425,7 +425,9 @@ export class Window extends PsychObject this._size[1] = window.innerHeight; // create a PIXI renderer and add it to the document: - this._renderer = PIXI.autoDetectRenderer(this._size[0], this._size[1], { + this._renderer = PIXI.autoDetectRenderer({ + width: this._size[0], + height: this._size[1], backgroundColor: this.color.int, resolution: window.devicePixelRatio });