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

Fix blurry Pixi canvas

Add
resolution: window.devicePixelRatio,
This commit is contained in:
Sijia Zhao 2020-05-19 18:40:56 +01:00
parent 092829f325
commit d4b52796c9

View File

@ -392,7 +392,8 @@ export class Window extends PsychObject {
// create a PIXI renderer and add it to the document:
this._renderer = PIXI.autoDetectRenderer(this._size[0], this._size[1], {
backgroundColor: this.color.int
backgroundColor: this.color.int,
resolution: window.devicePixelRatio,
});
this._renderer.view.style.transform = 'translatez(0)';
this._renderer.view.style.position = 'absolute';