1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-11 16:18:10 +00:00

core/Window: tweak renderer width, height options passing for pixi latest

This commit is contained in:
Sotiri Bakagiannis 2020-09-18 16:04:32 +01:00
parent da2d9c5ad7
commit 39196b9119

View File

@ -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
});