fix canvas issue when gpu is disabled

This commit is contained in:
bordun 2020-03-15 23:45:27 +01:00
parent 7803b6d737
commit 1be0ec296d
4 changed files with 10 additions and 2 deletions

View file

@ -12,7 +12,7 @@ class Canvas extends Widget {
this.canvas = DOM.get(this.container, 'canvas')[0]
this.ctx = this.canvas.getContext('2d',{
desynchronized: true,
desynchronized: ELECTRON_NOGPU ? false : true,
lowLatency: true,
alpha: true,
preserveDrawingBuffer: true // avoid flickering