From 39196b911924f254fccb291e2d5bad481d55fa00 Mon Sep 17 00:00:00 2001 From: Sotiri Bakagiannis Date: Fri, 18 Sep 2020 16:04:32 +0100 Subject: [PATCH] core/Window: tweak renderer width, height options passing for pixi latest --- js/core/Window.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 });