{"action":"closed","number":16,"pull_request":{"url":"https://api.github.com/repos/kbinani/screenshot/pulls/16","id":351351361,"node_id":"MDExOlB1bGxSZXF1ZXN0MzUxMzUxMzYx","html_url":"https://github.com/kbinani/screenshot/pull/16","diff_url":"https://github.com/kbinani/screenshot/pull/16.diff","patch_url":"https://github.com/kbinani/screenshot/pull/16.patch","issue_url":"https://api.github.com/repos/kbinani/screenshot/issues/16","number":16,"state":"closed","locked":false,"title":"bugfix(windows): Use real dimensions of a screen to support scaling","user":{"login":"LiamHaworth","id":3233620,"node_id":"MDQ6VXNlcjMyMzM2MjA=","avatar_url":"https://avatars0.githubusercontent.com/u/3233620?v=4","gravatar_id":"","url":"https://api.github.com/users/LiamHaworth","html_url":"https://github.com/LiamHaworth","followers_url":"https://api.github.com/users/LiamHaworth/followers","following_url":"https://api.github.com/users/LiamHaworth/following{/other_user}","gists_url":"https://api.github.com/users/LiamHaworth/gists{/gist_id}","starred_url":"https://api.github.com/users/LiamHaworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiamHaworth/subscriptions","organizations_url":"https://api.github.com/users/LiamHaworth/orgs","repos_url":"https://api.github.com/users/LiamHaworth/repos","events_url":"https://api.github.com/users/LiamHaworth/events{/privacy}","received_events_url":"https://api.github.com/users/LiamHaworth/received_events","type":"User","site_admin":false},"body":"On windows, when the `EnumDisplayMonitors` function is used with screen\r\nscaling, windows treats the application as DPI unaware leading to the\r\ndimensions returned in the callback parameters not reflecting the actual\r\nresolution of the display.\r\n\r\nThis leads to a screenshot of the scaled display only containing a\r\nportion of the visible image. To combat this, a new method\r\n`getMonitorRealSize` has been introduced that uses the monitor handle\r\nfrom the callback parameters to obtain the display adapter name.\r\n\r\nWith the display adapter name, device configuration can be obtained that\r\ncontains the real screen resolution and position, these are then\r\nreturned and used as the bounds of the display.","created_at":"2019-12-10T11:56:59Z","updated_at":"2019-12-11T15:45:43Z","closed_at":"2019-12-11T15:45:43Z","merged_at":"2019-12-11T15:45:43Z","merge_commit_sha":"3a185f1ce18f8e38a451baf87e6b66adc3edfb67","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kbinani/screenshot/pulls/16/commits","review_comments_url":"https://api.github.com/repos/kbinani/screenshot/pulls/16/comments","review_comment_url":"https://api.github.com/repos/kbinani/screenshot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kbinani/screenshot/issues/16/comments","statuses_url":"https://api.github.com/repos/kbinani/screenshot/statuses/c2b29be0f7ed248220d3d01040b9a7ada26071c5","head":{"label":"LiamHaworth:bugfix/obtain-screen-resolution-not-affected-by-scaling-windows","ref":"bugfix/obtain-screen-resolution-not-affected-by-scaling-windows","sha":"c2b29be0f7ed248220d3d01040b9a7ada26071c5","user":{"login":"LiamHaworth","id":3233620,"node_id":"MDQ6VXNlcjMyMzM2MjA=","avatar_url":"https://avatars0.githubusercontent.com/u/3233620?v=4","gravatar_id":"","url":"https://api.github.com/users/LiamHaworth","html_url":"https://github.com/LiamHaworth","followers_url":"https://api.github.com/users/LiamHaworth/followers","following_url":"https://api.github.com/users/LiamHaworth/following{/other_user}","gists_url":"https://api.github.com/users/LiamHaworth/gists{/gist_id}","starred_url":"https://api.github.com/users/LiamHaworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiamHaworth/subscriptions","organizations_url":"https://api.github.com/users/LiamHaworth/orgs","repos_url":"https://api.github.com/users/LiamHaworth/repos","events_url":"https://api.github.com/users/LiamHaworth/events{/privacy}","received_events_url":"https://api.github.com/users/LiamHaworth/received_events","type":"User","site_admin":false},"repo":{"id":227057834,"node_id":"MDEwOlJlcG9zaXRvcnkyMjcwNTc4MzQ=","name":"screenshot","full_name":"LiamHaworth/screenshot","private":false,"owner":{"login":"LiamHaworth","id":3233620,"node_id":"MDQ6VXNlcjMyMzM2MjA=","avatar_url":"https://avatars0.githubusercontent.com/u/3233620?v=4","gravatar_id":"","url":"https://api.github.com/users/LiamHaworth","html_url":"https://github.com/LiamHaworth","followers_url":"https://api.github.com/users/LiamHaworth/followers","following_url":"https://api.github.com/users/LiamHaworth/following{/other_user}","gists_url":"https://api.github.com/users/LiamHaworth/gists{/gist_id}","starred_url":"https://api.github.com/users/LiamHaworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiamHaworth/subscriptions","organizations_url":"https://api.github.com/users/LiamHaworth/orgs","repos_url":"https://api.github.com/users/LiamHaworth/repos","events_url":"https://api.github.com/users/LiamHaworth/events{/privacy}","received_events_url":"https://api.github.com/users/LiamHaworth/received_events","type":"User","site_admin":false},"html_url":"https://github.com/LiamHaworth/screenshot","description":"Go library to capture desktop to image","fork":true,"url":"https://api.github.com/repos/LiamHaworth/screenshot","forks_url":"https://api.github.com/repos/LiamHaworth/screenshot/forks","keys_url":"https://api.github.com/repos/LiamHaworth/screenshot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LiamHaworth/screenshot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LiamHaworth/screenshot/teams","hooks_url":"https://api.github.com/repos/LiamHaworth/screenshot/hooks","issue_events_url":"https://api.github.com/repos/LiamHaworth/screenshot/issues/events{/number}","events_url":"https://api.github.com/repos/LiamHaworth/screenshot/events","assignees_url":"https://api.github.com/repos/LiamHaworth/screenshot/assignees{/user}","branches_url":"https://api.github.com/repos/LiamHaworth/screenshot/branches{/branch}","tags_url":"https://api.github.com/repos/LiamHaworth/screenshot/tags","blobs_url":"https://api.github.com/repos/LiamHaworth/screenshot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LiamHaworth/screenshot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LiamHaworth/screenshot/git/refs{/sha}","trees_url":"https://api.github.com/repos/LiamHaworth/screenshot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LiamHaworth/screenshot/statuses/{sha}","languages_url":"https://api.github.com/repos/LiamHaworth/screenshot/languages","stargazers_url":"https://api.github.com/repos/LiamHaworth/screenshot/stargazers","contributors_url":"https://api.github.com/repos/LiamHaworth/screenshot/contributors","subscribers_url":"https://api.github.com/repos/LiamHaworth/screenshot/subscribers","subscription_url":"https://api.github.com/repos/LiamHaworth/screenshot/subscription","commits_url":"https://api.github.com/repos/LiamHaworth/screenshot/commits{/sha}","git_commits_url":"https://api.github.com/repos/LiamHaworth/screenshot/git/commits{/sha}","comments_url":"https://api.github.com/repos/LiamHaworth/screenshot/comments{/number}","issue_comment_url":"https://api.github.com/repos/LiamHaworth/screenshot/issues/comments{/number}","contents_url":"https://api.github.com/repos/LiamHaworth/screenshot/contents/{+path}","compare_url":"https://api.github.com/repos/LiamHaworth/screenshot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LiamHaworth/screenshot/merges","archive_url":"https://api.github.com/repos/LiamHaworth/screenshot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LiamHaworth/screenshot/downloads","issues_url":"https://api.github.com/repos/LiamHaworth/screenshot/issues{/number}","pulls_url":"https://api.github.com/repos/LiamHaworth/screenshot/pulls{/number}","milestones_url":"https://api.github.com/repos/LiamHaworth/screenshot/milestones{/number}","notifications_url":"https://api.github.com/repos/LiamHaworth/screenshot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LiamHaworth/screenshot/labels{/name}","releases_url":"https://api.github.com/repos/LiamHaworth/screenshot/releases{/id}","deployments_url":"https://api.github.com/repos/LiamHaworth/screenshot/deployments","created_at":"2019-12-10T07:41:09Z","updated_at":"2019-12-10T07:41:11Z","pushed_at":"2019-12-11T15:22:55Z","git_url":"git://github.com/LiamHaworth/screenshot.git","ssh_url":"git@github.com:LiamHaworth/screenshot.git","clone_url":"https://github.com/LiamHaworth/screenshot.git","svn_url":"https://github.com/LiamHaworth/screenshot","homepage":null,"size":42,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kbinani:master","ref":"master","sha":"f06580e30cdc0fd9f5b6612f58ad3629f20faeec","user":{"login":"kbinani","id":1030301,"node_id":"MDQ6VXNlcjEwMzAzMDE=","avatar_url":"https://avatars3.githubusercontent.com/u/1030301?v=4","gravatar_id":"","url":"https://api.github.com/users/kbinani","html_url":"https://github.com/kbinani","followers_url":"https://api.github.com/users/kbinani/followers","following_url":"https://api.github.com/users/kbinani/following{/other_user}","gists_url":"https://api.github.com/users/kbinani/gists{/gist_id}","starred_url":"https://api.github.com/users/kbinani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbinani/subscriptions","organizations_url":"https://api.github.com/users/kbinani/orgs","repos_url":"https://api.github.com/users/kbinani/repos","events_url":"https://api.github.com/users/kbinani/events{/privacy}","received_events_url":"https://api.github.com/users/kbinani/received_events","type":"User","site_admin":false},"repo":{"id":69247037,"node_id":"MDEwOlJlcG9zaXRvcnk2OTI0NzAzNw==","name":"screenshot","full_name":"kbinani/screenshot","private":false,"owner":{"login":"kbinani","id":1030301,"node_id":"MDQ6VXNlcjEwMzAzMDE=","avatar_url":"https://avatars3.githubusercontent.com/u/1030301?v=4","gravatar_id":"","url":"https://api.github.com/users/kbinani","html_url":"https://github.com/kbinani","followers_url":"https://api.github.com/users/kbinani/followers","following_url":"https://api.github.com/users/kbinani/following{/other_user}","gists_url":"https://api.github.com/users/kbinani/gists{/gist_id}","starred_url":"https://api.github.com/users/kbinani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbinani/subscriptions","organizations_url":"https://api.github.com/users/kbinani/orgs","repos_url":"https://api.github.com/users/kbinani/repos","events_url":"https://api.github.com/users/kbinani/events{/privacy}","received_events_url":"https://api.github.com/users/kbinani/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kbinani/screenshot","description":"Go library to capture desktop to image","fork":false,"url":"https://api.github.com/repos/kbinani/screenshot","forks_url":"https://api.github.com/repos/kbinani/screenshot/forks","keys_url":"https://api.github.com/repos/kbinani/screenshot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kbinani/screenshot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kbinani/screenshot/teams","hooks_url":"https://api.github.com/repos/kbinani/screenshot/hooks","issue_events_url":"https://api.github.com/repos/kbinani/screenshot/issues/events{/number}","events_url":"https://api.github.com/repos/kbinani/screenshot/events","assignees_url":"https://api.github.com/repos/kbinani/screenshot/assignees{/user}","branches_url":"https://api.github.com/repos/kbinani/screenshot/branches{/branch}","tags_url":"https://api.github.com/repos/kbinani/screenshot/tags","blobs_url":"https://api.github.com/repos/kbinani/screenshot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kbinani/screenshot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kbinani/screenshot/git/refs{/sha}","trees_url":"https://api.github.com/repos/kbinani/screenshot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kbinani/screenshot/statuses/{sha}","languages_url":"https://api.github.com/repos/kbinani/screenshot/languages","stargazers_url":"https://api.github.com/repos/kbinani/screenshot/stargazers","contributors_url":"https://api.github.com/repos/kbinani/screenshot/contributors","subscribers_url":"https://api.github.com/repos/kbinani/screenshot/subscribers","subscription_url":"https://api.github.com/repos/kbinani/screenshot/subscription","commits_url":"https://api.github.com/repos/kbinani/screenshot/commits{/sha}","git_commits_url":"https://api.github.com/repos/kbinani/screenshot/git/commits{/sha}","comments_url":"https://api.github.com/repos/kbinani/screenshot/comments{/number}","issue_comment_url":"https://api.github.com/repos/kbinani/screenshot/issues/comments{/number}","contents_url":"https://api.github.com/repos/kbinani/screenshot/contents/{+path}","compare_url":"https://api.github.com/repos/kbinani/screenshot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kbinani/screenshot/merges","archive_url":"https://api.github.com/repos/kbinani/screenshot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kbinani/screenshot/downloads","issues_url":"https://api.github.com/repos/kbinani/screenshot/issues{/number}","pulls_url":"https://api.github.com/repos/kbinani/screenshot/pulls{/number}","milestones_url":"https://api.github.com/repos/kbinani/screenshot/milestones{/number}","notifications_url":"https://api.github.com/repos/kbinani/screenshot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kbinani/screenshot/labels{/name}","releases_url":"https://api.github.com/repos/kbinani/screenshot/releases{/id}","deployments_url":"https://api.github.com/repos/kbinani/screenshot/deployments","created_at":"2016-09-26T12:19:40Z","updated_at":"2019-12-11T00:03:42Z","pushed_at":"2019-12-11T15:45:43Z","git_url":"git://github.com/kbinani/screenshot.git","ssh_url":"git@github.com:kbinani/screenshot.git","clone_url":"https://github.com/kbinani/screenshot.git","svn_url":"https://github.com/kbinani/screenshot","homepage":null,"size":40,"stargazers_count":303,"watchers_count":303,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":51,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":51,"open_issues":0,"watchers":303,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kbinani/screenshot/pulls/16"},"html":{"href":"https://github.com/kbinani/screenshot/pull/16"},"issue":{"href":"https://api.github.com/repos/kbinani/screenshot/issues/16"},"comments":{"href":"https://api.github.com/repos/kbinani/screenshot/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/kbinani/screenshot/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/kbinani/screenshot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kbinani/screenshot/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/kbinani/screenshot/statuses/c2b29be0f7ed248220d3d01040b9a7ada26071c5"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"kbinani","id":1030301,"node_id":"MDQ6VXNlcjEwMzAzMDE=","avatar_url":"https://avatars3.githubusercontent.com/u/1030301?v=4","gravatar_id":"","url":"https://api.github.com/users/kbinani","html_url":"https://github.com/kbinani","followers_url":"https://api.github.com/users/kbinani/followers","following_url":"https://api.github.com/users/kbinani/following{/other_user}","gists_url":"https://api.github.com/users/kbinani/gists{/gist_id}","starred_url":"https://api.github.com/users/kbinani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbinani/subscriptions","organizations_url":"https://api.github.com/users/kbinani/orgs","repos_url":"https://api.github.com/users/kbinani/repos","events_url":"https://api.github.com/users/kbinani/events{/privacy}","received_events_url":"https://api.github.com/users/kbinani/received_events","type":"User","site_admin":false},"comments":1,"review_comments":5,"maintainer_can_modify":false,"commits":1,"additions":66,"deletions":4,"changed_files":1}}
{"actor":{"display_login":"kbinani"}}