From 8585728630a2203c9305678fc690d65b93b62a3d Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sun, 6 Sep 2020 15:05:44 -0400 Subject: #963 2 col format for small, 1 col for large --- www/js/app.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'www/js/app.js') diff --git a/www/js/app.js b/www/js/app.js index 8799784d..f85a5571 100755 --- a/www/js/app.js +++ b/www/js/app.js @@ -1480,6 +1480,9 @@ angular.module('zmApp', [ $rootScope.devWidth = ((window.innerWidth > 0) ? window.innerWidth : screen.width); $rootScope.devHeight = ((window.innerHeight > 0) ? window.innerHeight : screen.height); $rootScope.videoHeight = $rootScope.devHeight - 20; + + $rootScope.devWidth *= pixelRatio; + $rootScope.devHeight *= pixelRatio; NVR.debug("resize/orient: " + $rootScope.devWidth + "(w) * " + $rootScope.devHeight+"(h)"); -- cgit v1.2.3