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:
parent
092829f325
commit
d4b52796c9
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user