{"action":"created","comment":{"url":"https://api.github.com/repos/hrydgard/ppsspp/pulls/comments/43576732","id":43576732,"diff_hunk":"@@ -774,6 +779,11 @@ UI::EventReturn GameSettingsScreen::OnFullscreenChange(UI::EventParams &e) {\n \treturn UI::EVENT_DONE;\n }\n \n+UI::EventReturn GameSettingsScreen::OnDisplayLayoutEditor(UI::EventParams &e) {\n+\tscreenManager()->push(new DisplayLayoutScreen()); //TouchControlLayoutScreen());//","path":"UI/GameSettingsScreen.cpp","position":28,"original_position":28,"commit_id":"526d0b04b9673e855d37e950e7a99b1a5277b47a","original_commit_id":"526d0b04b9673e855d37e950e7a99b1a5277b47a","user":{"login":"unknownbrackets","id":191233,"avatar_url":"https://avatars.githubusercontent.com/u/191233?v=3","gravatar_id":"","url":"https://api.github.com/users/unknownbrackets","html_url":"https://github.com/unknownbrackets","followers_url":"https://api.github.com/users/unknownbrackets/followers","following_url":"https://api.github.com/users/unknownbrackets/following{/other_user}","gists_url":"https://api.github.com/users/unknownbrackets/gists{/gist_id}","starred_url":"https://api.github.com/users/unknownbrackets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unknownbrackets/subscriptions","organizations_url":"https://api.github.com/users/unknownbrackets/orgs","repos_url":"https://api.github.com/users/unknownbrackets/repos","events_url":"https://api.github.com/users/unknownbrackets/events{/privacy}","received_events_url":"https://api.github.com/users/unknownbrackets/received_events","type":"User","site_admin":false},"body":"Can you remove this comment?  Sorry to nitpick.\r\n\r\n-[Unknown]","created_at":"2015-10-31T22:10:06Z","updated_at":"2015-10-31T22:10:06Z","html_url":"https://github.com/hrydgard/ppsspp/pull/8082#discussion_r43576732","pull_request_url":"https://api.github.com/repos/hrydgard/ppsspp/pulls/8082","_links":{"self":{"href":"https://api.github.com/repos/hrydgard/ppsspp/pulls/comments/43576732"},"html":{"href":"https://github.com/hrydgard/ppsspp/pull/8082#discussion_r43576732"},"pull_request":{"href":"https://api.github.com/repos/hrydgard/ppsspp/pulls/8082"}}},"pull_request":{"url":"https://api.github.com/repos/hrydgard/ppsspp/pulls/8082","id":47999189,"html_url":"https://github.com/hrydgard/ppsspp/pull/8082","diff_url":"https://github.com/hrydgard/ppsspp/pull/8082.diff","patch_url":"https://github.com/hrydgard/ppsspp/pull/8082.patch","issue_url":"https://api.github.com/repos/hrydgard/ppsspp/issues/8082","number":8082,"state":"open","locked":false,"title":"Add \"Display layout editor\"","user":{"login":"LunaMoo","id":5485237,"avatar_url":"https://avatars.githubusercontent.com/u/5485237?v=3","gravatar_id":"","url":"https://api.github.com/users/LunaMoo","html_url":"https://github.com/LunaMoo","followers_url":"https://api.github.com/users/LunaMoo/followers","following_url":"https://api.github.com/users/LunaMoo/following{/other_user}","gists_url":"https://api.github.com/users/LunaMoo/gists{/gist_id}","starred_url":"https://api.github.com/users/LunaMoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LunaMoo/subscriptions","organizations_url":"https://api.github.com/users/LunaMoo/orgs","repos_url":"https://api.github.com/users/LunaMoo/repos","events_url":"https://api.github.com/users/LunaMoo/events{/privacy}","received_events_url":"https://api.github.com/users/LunaMoo/received_events","type":"User","site_admin":false},"body":" To use on tablets, or when people want to use integer zoom while keeping black bars or cropping image. By default it's set to do an automatic cropping when stretching is disabled since it replaces the 1080p exception.\r\n\r\n It's so big because I had to rebuilt atlas to add tiny half kb image.:C Not sure if I rebuilt atlas correctly since there were a few missing signs and I got arialuni.ttf from the net since I didn't had it.\r\n\r\n Everything works, althrough I'm unsure of the options names and probably it might require some changes. I mostly based the editor screen on touch control, so there was some copy&paste involved, althrough I stripped it out of what this feature didn't need.\r\nIt looks like that:\r\n![edit screen](https://cloud.githubusercontent.com/assets/5485237/10561991/108220a6-7545-11e5-8687-30fcebf9b262.jpg)\r\nIt's also aware of the display rotation, also the image that symbolizes the display is transparent and the lines symbolize screen bounds, which can be passed for cropping image.\r\n\r\n I guess it will collide with combo key pull request since it also rebuilds atlas, but as I said I'm unsure if my arialuni font was correct version, so would be better if someone takes this over.:3 Any changes are welcome, I didn't really wrote that for myself and I'm undecided how it should look like.\r\n\r\nEdit: Improved a bit of stupidity/simplified the code I made while being half asleep ~_~(heh side effect from training my body too much, I don't really feel when my brain slows down:C).\r\n Also changed boundaries to avoid moving the game display out of the view completely as someone could do that accidently and then wonder why he sees black screen. Moving it half way every direction should be more than enough even for somewhat extreme image crop/zoom in.","created_at":"2015-10-18T01:11:30Z","updated_at":"2015-10-31T22:10:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a9e26ea0c9e05c1f8f1e5dd658c06e79163d1850","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hrydgard/ppsspp/pulls/8082/commits","review_comments_url":"https://api.github.com/repos/hrydgard/ppsspp/pulls/8082/comments","review_comment_url":"https://api.github.com/repos/hrydgard/ppsspp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hrydgard/ppsspp/issues/8082/comments","statuses_url":"https://api.github.com/repos/hrydgard/ppsspp/statuses/526d0b04b9673e855d37e950e7a99b1a5277b47a","head":{"label":"LunaMoo:DisplayEditing","ref":"DisplayEditing","sha":"526d0b04b9673e855d37e950e7a99b1a5277b47a","user":{"login":"LunaMoo","id":5485237,"avatar_url":"https://avatars.githubusercontent.com/u/5485237?v=3","gravatar_id":"","url":"https://api.github.com/users/LunaMoo","html_url":"https://github.com/LunaMoo","followers_url":"https://api.github.com/users/LunaMoo/followers","following_url":"https://api.github.com/users/LunaMoo/following{/other_user}","gists_url":"https://api.github.com/users/LunaMoo/gists{/gist_id}","starred_url":"https://api.github.com/users/LunaMoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LunaMoo/subscriptions","organizations_url":"https://api.github.com/users/LunaMoo/orgs","repos_url":"https://api.github.com/users/LunaMoo/repos","events_url":"https://api.github.com/users/LunaMoo/events{/privacy}","received_events_url":"https://api.github.com/users/LunaMoo/received_events","type":"User","site_admin":false},"repo":{"id":43588463,"name":"ppsspp","full_name":"LunaMoo/ppsspp","owner":{"login":"LunaMoo","id":5485237,"avatar_url":"https://avatars.githubusercontent.com/u/5485237?v=3","gravatar_id":"","url":"https://api.github.com/users/LunaMoo","html_url":"https://github.com/LunaMoo","followers_url":"https://api.github.com/users/LunaMoo/followers","following_url":"https://api.github.com/users/LunaMoo/following{/other_user}","gists_url":"https://api.github.com/users/LunaMoo/gists{/gist_id}","starred_url":"https://api.github.com/users/LunaMoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LunaMoo/subscriptions","organizations_url":"https://api.github.com/users/LunaMoo/orgs","repos_url":"https://api.github.com/users/LunaMoo/repos","events_url":"https://api.github.com/users/LunaMoo/events{/privacy}","received_events_url":"https://api.github.com/users/LunaMoo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LunaMoo/ppsspp","description":"A PSP emulator for Android, Windows, Mac, Linux and Blackberry 10, written in C++. Want to contribute? Join us in #ppsspp on freenode (IRC) or just send pull requests / issues.","fork":true,"url":"https://api.github.com/repos/LunaMoo/ppsspp","forks_url":"https://api.github.com/repos/LunaMoo/ppsspp/forks","keys_url":"https://api.github.com/repos/LunaMoo/ppsspp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LunaMoo/ppsspp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LunaMoo/ppsspp/teams","hooks_url":"https://api.github.com/repos/LunaMoo/ppsspp/hooks","issue_events_url":"https://api.github.com/repos/LunaMoo/ppsspp/issues/events{/number}","events_url":"https://api.github.com/repos/LunaMoo/ppsspp/events","assignees_url":"https://api.github.com/repos/LunaMoo/ppsspp/assignees{/user}","branches_url":"https://api.github.com/repos/LunaMoo/ppsspp/branches{/branch}","tags_url":"https://api.github.com/repos/LunaMoo/ppsspp/tags","blobs_url":"https://api.github.com/repos/LunaMoo/ppsspp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LunaMoo/ppsspp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LunaMoo/ppsspp/git/refs{/sha}","trees_url":"https://api.github.com/repos/LunaMoo/ppsspp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LunaMoo/ppsspp/statuses/{sha}","languages_url":"https://api.github.com/repos/LunaMoo/ppsspp/languages","stargazers_url":"https://api.github.com/repos/LunaMoo/ppsspp/stargazers","contributors_url":"https://api.github.com/repos/LunaMoo/ppsspp/contributors","subscribers_url":"https://api.github.com/repos/LunaMoo/ppsspp/subscribers","subscription_url":"https://api.github.com/repos/LunaMoo/ppsspp/subscription","commits_url":"https://api.github.com/repos/LunaMoo/ppsspp/commits{/sha}","git_commits_url":"https://api.github.com/repos/LunaMoo/ppsspp/git/commits{/sha}","comments_url":"https://api.github.com/repos/LunaMoo/ppsspp/comments{/number}","issue_comment_url":"https://api.github.com/repos/LunaMoo/ppsspp/issues/comments{/number}","contents_url":"https://api.github.com/repos/LunaMoo/ppsspp/contents/{+path}","compare_url":"https://api.github.com/repos/LunaMoo/ppsspp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LunaMoo/ppsspp/merges","archive_url":"https://api.github.com/repos/LunaMoo/ppsspp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LunaMoo/ppsspp/downloads","issues_url":"https://api.github.com/repos/LunaMoo/ppsspp/issues{/number}","pulls_url":"https://api.github.com/repos/LunaMoo/ppsspp/pulls{/number}","milestones_url":"https://api.github.com/repos/LunaMoo/ppsspp/milestones{/number}","notifications_url":"https://api.github.com/repos/LunaMoo/ppsspp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LunaMoo/ppsspp/labels{/name}","releases_url":"https://api.github.com/repos/LunaMoo/ppsspp/releases{/id}","created_at":"2015-10-03T04:59:49Z","updated_at":"2015-10-03T05:00:01Z","pushed_at":"2015-10-31T20:08:36Z","git_url":"git://github.com/LunaMoo/ppsspp.git","ssh_url":"git@github.com:LunaMoo/ppsspp.git","clone_url":"https://github.com/LunaMoo/ppsspp.git","svn_url":"https://github.com/LunaMoo/ppsspp","homepage":"http://www.ppsspp.org","size":91159,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hrydgard:master","ref":"master","sha":"8b2da19a55869ea28a89dfc02c23326037c41704","user":{"login":"hrydgard","id":130929,"avatar_url":"https://avatars.githubusercontent.com/u/130929?v=3","gravatar_id":"","url":"https://api.github.com/users/hrydgard","html_url":"https://github.com/hrydgard","followers_url":"https://api.github.com/users/hrydgard/followers","following_url":"https://api.github.com/users/hrydgard/following{/other_user}","gists_url":"https://api.github.com/users/hrydgard/gists{/gist_id}","starred_url":"https://api.github.com/users/hrydgard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hrydgard/subscriptions","organizations_url":"https://api.github.com/users/hrydgard/orgs","repos_url":"https://api.github.com/users/hrydgard/repos","events_url":"https://api.github.com/users/hrydgard/events{/privacy}","received_events_url":"https://api.github.com/users/hrydgard/received_events","type":"User","site_admin":false},"repo":{"id":6486826,"name":"ppsspp","full_name":"hrydgard/ppsspp","owner":{"login":"hrydgard","id":130929,"avatar_url":"https://avatars.githubusercontent.com/u/130929?v=3","gravatar_id":"","url":"https://api.github.com/users/hrydgard","html_url":"https://github.com/hrydgard","followers_url":"https://api.github.com/users/hrydgard/followers","following_url":"https://api.github.com/users/hrydgard/following{/other_user}","gists_url":"https://api.github.com/users/hrydgard/gists{/gist_id}","starred_url":"https://api.github.com/users/hrydgard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hrydgard/subscriptions","organizations_url":"https://api.github.com/users/hrydgard/orgs","repos_url":"https://api.github.com/users/hrydgard/repos","events_url":"https://api.github.com/users/hrydgard/events{/privacy}","received_events_url":"https://api.github.com/users/hrydgard/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hrydgard/ppsspp","description":"A PSP emulator for Android, Windows, Mac, Linux and Blackberry 10, written in C++. Want to contribute? Join us in #ppsspp on freenode (IRC) or just send pull requests / issues.","fork":false,"url":"https://api.github.com/repos/hrydgard/ppsspp","forks_url":"https://api.github.com/repos/hrydgard/ppsspp/forks","keys_url":"https://api.github.com/repos/hrydgard/ppsspp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hrydgard/ppsspp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hrydgard/ppsspp/teams","hooks_url":"https://api.github.com/repos/hrydgard/ppsspp/hooks","issue_events_url":"https://api.github.com/repos/hrydgard/ppsspp/issues/events{/number}","events_url":"https://api.github.com/repos/hrydgard/ppsspp/events","assignees_url":"https://api.github.com/repos/hrydgard/ppsspp/assignees{/user}","branches_url":"https://api.github.com/repos/hrydgard/ppsspp/branches{/branch}","tags_url":"https://api.github.com/repos/hrydgard/ppsspp/tags","blobs_url":"https://api.github.com/repos/hrydgard/ppsspp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hrydgard/ppsspp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hrydgard/ppsspp/git/refs{/sha}","trees_url":"https://api.github.com/repos/hrydgard/ppsspp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hrydgard/ppsspp/statuses/{sha}","languages_url":"https://api.github.com/repos/hrydgard/ppsspp/languages","stargazers_url":"https://api.github.com/repos/hrydgard/ppsspp/stargazers","contributors_url":"https://api.github.com/repos/hrydgard/ppsspp/contributors","subscribers_url":"https://api.github.com/repos/hrydgard/ppsspp/subscribers","subscription_url":"https://api.github.com/repos/hrydgard/ppsspp/subscription","commits_url":"https://api.github.com/repos/hrydgard/ppsspp/commits{/sha}","git_commits_url":"https://api.github.com/repos/hrydgard/ppsspp/git/commits{/sha}","comments_url":"https://api.github.com/repos/hrydgard/ppsspp/comments{/number}","issue_comment_url":"https://api.github.com/repos/hrydgard/ppsspp/issues/comments{/number}","contents_url":"https://api.github.com/repos/hrydgard/ppsspp/contents/{+path}","compare_url":"https://api.github.com/repos/hrydgard/ppsspp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hrydgard/ppsspp/merges","archive_url":"https://api.github.com/repos/hrydgard/ppsspp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hrydgard/ppsspp/downloads","issues_url":"https://api.github.com/repos/hrydgard/ppsspp/issues{/number}","pulls_url":"https://api.github.com/repos/hrydgard/ppsspp/pulls{/number}","milestones_url":"https://api.github.com/repos/hrydgard/ppsspp/milestones{/number}","notifications_url":"https://api.github.com/repos/hrydgard/ppsspp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hrydgard/ppsspp/labels{/name}","releases_url":"https://api.github.com/repos/hrydgard/ppsspp/releases{/id}","created_at":"2012-11-01T08:41:48Z","updated_at":"2015-10-31T15:43:12Z","pushed_at":"2015-10-31T22:01:52Z","git_url":"git://github.com/hrydgard/ppsspp.git","ssh_url":"git@github.com:hrydgard/ppsspp.git","clone_url":"https://github.com/hrydgard/ppsspp.git","svn_url":"https://github.com/hrydgard/ppsspp","homepage":"http://www.ppsspp.org","size":331516,"stargazers_count":1951,"watchers_count":1951,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":834,"mirror_url":null,"open_issues_count":627,"forks":834,"open_issues":627,"watchers":1951,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hrydgard/ppsspp/pulls/8082"},"html":{"href":"https://github.com/hrydgard/ppsspp/pull/8082"},"issue":{"href":"https://api.github.com/repos/hrydgard/ppsspp/issues/8082"},"comments":{"href":"https://api.github.com/repos/hrydgard/ppsspp/issues/8082/comments"},"review_comments":{"href":"https://api.github.com/repos/hrydgard/ppsspp/pulls/8082/comments"},"review_comment":{"href":"https://api.github.com/repos/hrydgard/ppsspp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hrydgard/ppsspp/pulls/8082/commits"},"statuses":{"href":"https://api.github.com/repos/hrydgard/ppsspp/statuses/526d0b04b9673e855d37e950e7a99b1a5277b47a"}}}}