Formatting changes

This commit is contained in:
schmelczerandras 2020-10-19 11:58:33 +02:00
parent a15cb9e19c
commit 258529b039
2 changed files with 2 additions and 1 deletions

View file

@ -7,6 +7,7 @@ import { PolygonBase, PolygonFactory } from './polygon-factory';
interface NoisyPolygonBase extends PolygonBase {
randomOffset: number;
}
/**
* @category Drawable
*/

View file

@ -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;