Improve the resolution of software oscilloscope

pull/263/head
James H Ball 2024-10-12 21:45:48 +01:00
rodzic a3eef3c074
commit a46cd4b78b
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -214,7 +214,7 @@ var Render =
{
var windowWidth = Math.max(document.documentElement.clientWidth, window.innerWidth || 0)
var windowHeight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0)
var canvasSize = Math.min(windowHeight, windowWidth);
var canvasSize = Math.min(windowHeight, windowWidth) * window.devicePixelRatio;
Render.canvas.width = canvasSize;
Render.canvas.height = canvasSize;
if (Render.lineTexture)