Skip to content

Commit

Permalink
Update check to > 0
Browse files Browse the repository at this point in the history
rawDPIX is 0 while projecting
  • Loading branch information
dwcares committed Feb 12, 2014
1 parent 9557954 commit 15c13d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RealRuler/js/default.js
Expand Up @@ -35,7 +35,7 @@
function loadDisplayInfo() {
var info = Windows.Graphics.Display.DisplayInformation.getForCurrentView();

if (info.rawDpiX >= 0) {
if (info.rawDpiX > 0) {
nativePPI = info.rawDpiX;
logicalPPI = nativePPI * 100 / info.resolutionScale;
var screenSizeX = window.screen.width / logicalPPI;
Expand Down

0 comments on commit 15c13d2

Please sign in to comment.