From 258529b03982813b35072beb009c1d36c72ae10b Mon Sep 17 00:00:00 2001 From: schmelczerandras Date: Mon, 19 Oct 2020 11:58:33 +0200 Subject: [PATCH] Formatting changes --- src/drawables/shapes/noisy-polygon-factory.ts | 1 + src/graphics/graphics-library/frame-buffer/frame-buffer.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/drawables/shapes/noisy-polygon-factory.ts b/src/drawables/shapes/noisy-polygon-factory.ts index ee76099..643c583 100644 --- a/src/drawables/shapes/noisy-polygon-factory.ts +++ b/src/drawables/shapes/noisy-polygon-factory.ts @@ -7,6 +7,7 @@ import { PolygonBase, PolygonFactory } from './polygon-factory'; interface NoisyPolygonBase extends PolygonBase { randomOffset: number; } + /** * @category Drawable */ diff --git a/src/graphics/graphics-library/frame-buffer/frame-buffer.ts b/src/graphics/graphics-library/frame-buffer/frame-buffer.ts index e00053c..44a9071 100644 --- a/src/graphics/graphics-library/frame-buffer/frame-buffer.ts +++ b/src/graphics/graphics-library/frame-buffer/frame-buffer.ts @@ -28,7 +28,7 @@ export abstract class FrameBuffer { public setSize(): boolean { const realToCssPixels = - (this.enableHighDpiRendering ? window.devicePixelRatio : 1) * this.renderScale; + (this.enableHighDpiRendering ? devicePixelRatio : 1) * this.renderScale; const canvasWidth = (this.gl.canvas as HTMLCanvasElement).clientWidth; const canvasHeight = (this.gl.canvas as HTMLCanvasElement).clientHeight;