{"action":"created","issue":{"url":"https://api.github.com/repos/electron/electron/issues/6571","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/6571/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/6571/comments","events_url":"https://api.github.com/repos/electron/electron/issues/6571/events","html_url":"https://github.com/electron/electron/issues/6571","id":167086655,"number":6571,"title":"screen.scaleFactor always returns 1","user":{"login":"Mossop","id":437326,"avatar_url":"https://avatars.githubusercontent.com/u/437326?v=3","gravatar_id":"","url":"https://api.github.com/users/Mossop","html_url":"https://github.com/Mossop","followers_url":"https://api.github.com/users/Mossop/followers","following_url":"https://api.github.com/users/Mossop/following{/other_user}","gists_url":"https://api.github.com/users/Mossop/gists{/gist_id}","starred_url":"https://api.github.com/users/Mossop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mossop/subscriptions","organizations_url":"https://api.github.com/users/Mossop/orgs","repos_url":"https://api.github.com/users/Mossop/repos","events_url":"https://api.github.com/users/Mossop/events{/privacy}","received_events_url":"https://api.github.com/users/Mossop/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-22T16:48:56Z","updated_at":"2016-07-25T16:44:58Z","closed_at":"2016-07-25T01:34:32Z","body":"* Electron version: 1.2.8\r\n* Operating system: Windows\r\n\r\nI have a hidpi screen on my laptop and a normal main monitor that has some scaling applied through windows' display properties. In both cases the following code returns 1 even though I would expect something larger:\r\n\r\n    require('electron').screen.getPrimaryDisplay().scaleFactor\r\n"},"comment":{"url":"https://api.github.com/repos/electron/electron/issues/comments/235010734","html_url":"https://github.com/electron/electron/issues/6571#issuecomment-235010734","issue_url":"https://api.github.com/repos/electron/electron/issues/6571","id":235010734,"user":{"login":"Mossop","id":437326,"avatar_url":"https://avatars.githubusercontent.com/u/437326?v=3","gravatar_id":"","url":"https://api.github.com/users/Mossop","html_url":"https://github.com/Mossop","followers_url":"https://api.github.com/users/Mossop/followers","following_url":"https://api.github.com/users/Mossop/following{/other_user}","gists_url":"https://api.github.com/users/Mossop/gists{/gist_id}","starred_url":"https://api.github.com/users/Mossop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mossop/subscriptions","organizations_url":"https://api.github.com/users/Mossop/orgs","repos_url":"https://api.github.com/users/Mossop/repos","events_url":"https://api.github.com/users/Mossop/events{/privacy}","received_events_url":"https://api.github.com/users/Mossop/received_events","type":"User","site_admin":false},"created_at":"2016-07-25T16:44:58Z","updated_at":"2016-07-25T16:44:58Z","body":"I've tried to use the APIs to find the current screen and it still returns a scaleFactor of 1 despite windows being set to scale to 125%. Also `screen.getAllDisplays()` returns just a single display regardless of whether I'm using my laptop screen or my external monitor (my laptop screen is disabled in that case so that is to be expected).\r\n\r\nIs it possible that scaleFactor only supports integer values?"}}
{"actor":{"display_login":"Mossop"}}