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:
parent
da2d9c5ad7
commit
39196b9119
@ -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
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user