{"action":"created","comment":{"url":"https://api.github.com/repos/Circular-Studios/Dash/pulls/comments/22962375","id":22962375,"diff_hunk":"@@ -103,7 +92,35 @@ public:\n     override void resize()\n     {\n         loadProperties();\n-        window.setSize( width, height );\n+\n+        bool bordered = false;\n+        \n+        switch( windowType )\n+        {\n+            case WindowType.Fullscreen:\n+                trace(\"Setting main window to Fullscreen mode!\");\n+                window.setFullscreenSetting( SDL_WINDOW_FULLSCREEN );\n+                break;\n+            case WindowType.FullscreenWindowed:\n+                trace(\"Setting main window to Fullscreen Windowed mode!\");\n+                bordered = false;\n+                width = screenWidth;\n+                height = screenHeight;\n+                goto default;\n+            case WindowType.Windowed:\n+                trace(\"Setting main window to Windowed mode!\");\n+                bordered = true;\n+                goto default;\n+            case WindowType.BorderlessWindow:\n+                trace(\"Setting main window to Borderless Windowed mode!\");\n+                bordered = false;\n+                goto default;\n+            default: \n+                window.setFullscreenSetting( 0 );\n+                window.setSize( width, height );\n+                SDL_SetWindowBordered( SDL_GetWindowFromID( window.id() ), bordered );","path":"source/dash/graphics/adapters/sdl.d","position":69,"original_position":69,"commit_id":"d199f4a7d1052389026be7583f39768776559089","original_commit_id":"d199f4a7d1052389026be7583f39768776559089","user":{"login":"ColdenCullen","id":1354824,"avatar_url":"https://avatars.githubusercontent.com/u/1354824?v=3","gravatar_id":"","url":"https://api.github.com/users/ColdenCullen","html_url":"https://github.com/ColdenCullen","followers_url":"https://api.github.com/users/ColdenCullen/followers","following_url":"https://api.github.com/users/ColdenCullen/following{/other_user}","gists_url":"https://api.github.com/users/ColdenCullen/gists{/gist_id}","starred_url":"https://api.github.com/users/ColdenCullen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColdenCullen/subscriptions","organizations_url":"https://api.github.com/users/ColdenCullen/orgs","repos_url":"https://api.github.com/users/ColdenCullen/repos","events_url":"https://api.github.com/users/ColdenCullen/events{/privacy}","received_events_url":"https://api.github.com/users/ColdenCullen/received_events","type":"User","site_admin":false},"body":"This looks pretty grody. Is there any way to get a `window.setWindowBordered` (or similar) into `gfm`?","created_at":"2015-01-14T19:25:37Z","updated_at":"2015-01-14T19:25:37Z","html_url":"https://github.com/Circular-Studios/Dash/pull/238#discussion_r22962375","pull_request_url":"https://api.github.com/repos/Circular-Studios/Dash/pulls/238","_links":{"self":{"href":"https://api.github.com/repos/Circular-Studios/Dash/pulls/comments/22962375"},"html":{"href":"https://github.com/Circular-Studios/Dash/pull/238#discussion_r22962375"},"pull_request":{"href":"https://api.github.com/repos/Circular-Studios/Dash/pulls/238"}}},"pull_request":{"url":"https://api.github.com/repos/Circular-Studios/Dash/pulls/238","id":26145742,"html_url":"https://github.com/Circular-Studios/Dash/pull/238","diff_url":"https://github.com/Circular-Studios/Dash/pull/238.diff","patch_url":"https://github.com/Circular-Studios/Dash/pull/238.patch","issue_url":"https://api.github.com/repos/Circular-Studios/Dash/issues/238","number":238,"state":"open","locked":false,"title":"Changed the \"fullscreen\" config variable to an enum","user":{"login":"Berulacks","id":4644265,"avatar_url":"https://avatars.githubusercontent.com/u/4644265?v=3","gravatar_id":"","url":"https://api.github.com/users/Berulacks","html_url":"https://github.com/Berulacks","followers_url":"https://api.github.com/users/Berulacks/followers","following_url":"https://api.github.com/users/Berulacks/following{/other_user}","gists_url":"https://api.github.com/users/Berulacks/gists{/gist_id}","starred_url":"https://api.github.com/users/Berulacks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Berulacks/subscriptions","organizations_url":"https://api.github.com/users/Berulacks/orgs","repos_url":"https://api.github.com/users/Berulacks/repos","events_url":"https://api.github.com/users/Berulacks/events{/privacy}","received_events_url":"https://api.github.com/users/Berulacks/received_events","type":"User","site_admin":false},"body":"...Which can be either \"Fullscreen\", \"FullscreenDesktop\", or \"Windowed\".\r\nI also udated the win32gl adapter to reflect this.\r\nAlso cleaned up some cruft in sdl.d and changed the two deprecated\r\nlogFatal() statements in linux.d to fatal()s.","created_at":"2014-12-16T13:25:33Z","updated_at":"2015-01-14T19:25:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5ffa5ce7ff0768bc4f9f41f142755f2ec966bddf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Circular-Studios/Dash/pulls/238/commits","review_comments_url":"https://api.github.com/repos/Circular-Studios/Dash/pulls/238/comments","review_comment_url":"https://api.github.com/repos/Circular-Studios/Dash/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Circular-Studios/Dash/issues/238/comments","statuses_url":"https://api.github.com/repos/Circular-Studios/Dash/statuses/d199f4a7d1052389026be7583f39768776559089","head":{"label":"Circular-Studios:feature/window_type","ref":"feature/window_type","sha":"d199f4a7d1052389026be7583f39768776559089","user":{"login":"Circular-Studios","id":6377632,"avatar_url":"https://avatars.githubusercontent.com/u/6377632?v=3","gravatar_id":"","url":"https://api.github.com/users/Circular-Studios","html_url":"https://github.com/Circular-Studios","followers_url":"https://api.github.com/users/Circular-Studios/followers","following_url":"https://api.github.com/users/Circular-Studios/following{/other_user}","gists_url":"https://api.github.com/users/Circular-Studios/gists{/gist_id}","starred_url":"https://api.github.com/users/Circular-Studios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Circular-Studios/subscriptions","organizations_url":"https://api.github.com/users/Circular-Studios/orgs","repos_url":"https://api.github.com/users/Circular-Studios/repos","events_url":"https://api.github.com/users/Circular-Studios/events{/privacy}","received_events_url":"https://api.github.com/users/Circular-Studios/received_events","type":"Organization","site_admin":false},"repo":{"id":15827539,"name":"Dash","full_name":"Circular-Studios/Dash","owner":{"login":"Circular-Studios","id":6377632,"avatar_url":"https://avatars.githubusercontent.com/u/6377632?v=3","gravatar_id":"","url":"https://api.github.com/users/Circular-Studios","html_url":"https://github.com/Circular-Studios","followers_url":"https://api.github.com/users/Circular-Studios/followers","following_url":"https://api.github.com/users/Circular-Studios/following{/other_user}","gists_url":"https://api.github.com/users/Circular-Studios/gists{/gist_id}","starred_url":"https://api.github.com/users/Circular-Studios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Circular-Studios/subscriptions","organizations_url":"https://api.github.com/users/Circular-Studios/orgs","repos_url":"https://api.github.com/users/Circular-Studios/repos","events_url":"https://api.github.com/users/Circular-Studios/events{/privacy}","received_events_url":"https://api.github.com/users/Circular-Studios/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Circular-Studios/Dash","description":"A free and open 3D game engine written in D.","fork":false,"url":"https://api.github.com/repos/Circular-Studios/Dash","forks_url":"https://api.github.com/repos/Circular-Studios/Dash/forks","keys_url":"https://api.github.com/repos/Circular-Studios/Dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Circular-Studios/Dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Circular-Studios/Dash/teams","hooks_url":"https://api.github.com/repos/Circular-Studios/Dash/hooks","issue_events_url":"https://api.github.com/repos/Circular-Studios/Dash/issues/events{/number}","events_url":"https://api.github.com/repos/Circular-Studios/Dash/events","assignees_url":"https://api.github.com/repos/Circular-Studios/Dash/assignees{/user}","branches_url":"https://api.github.com/repos/Circular-Studios/Dash/branches{/branch}","tags_url":"https://api.github.com/repos/Circular-Studios/Dash/tags","blobs_url":"https://api.github.com/repos/Circular-Studios/Dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Circular-Studios/Dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Circular-Studios/Dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/Circular-Studios/Dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Circular-Studios/Dash/statuses/{sha}","languages_url":"https://api.github.com/repos/Circular-Studios/Dash/languages","stargazers_url":"https://api.github.com/repos/Circular-Studios/Dash/stargazers","contributors_url":"https://api.github.com/repos/Circular-Studios/Dash/contributors","subscribers_url":"https://api.github.com/repos/Circular-Studios/Dash/subscribers","subscription_url":"https://api.github.com/repos/Circular-Studios/Dash/subscription","commits_url":"https://api.github.com/repos/Circular-Studios/Dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/Circular-Studios/Dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/Circular-Studios/Dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/Circular-Studios/Dash/issues/comments/{number}","contents_url":"https://api.github.com/repos/Circular-Studios/Dash/contents/{+path}","compare_url":"https://api.github.com/repos/Circular-Studios/Dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Circular-Studios/Dash/merges","archive_url":"https://api.github.com/repos/Circular-Studios/Dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Circular-Studios/Dash/downloads","issues_url":"https://api.github.com/repos/Circular-Studios/Dash/issues{/number}","pulls_url":"https://api.github.com/repos/Circular-Studios/Dash/pulls{/number}","milestones_url":"https://api.github.com/repos/Circular-Studios/Dash/milestones{/number}","notifications_url":"https://api.github.com/repos/Circular-Studios/Dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Circular-Studios/Dash/labels{/name}","releases_url":"https://api.github.com/repos/Circular-Studios/Dash/releases{/id}","created_at":"2014-01-11T18:00:35Z","updated_at":"2015-01-13T01:00:47Z","pushed_at":"2015-01-13T01:29:20Z","git_url":"git://github.com/Circular-Studios/Dash.git","ssh_url":"git@github.com:Circular-Studios/Dash.git","clone_url":"https://github.com/Circular-Studios/Dash.git","svn_url":"https://github.com/Circular-Studios/Dash","homepage":"http://dash.circularstudios.com","size":39999,"stargazers_count":203,"watchers_count":203,"language":"D","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":27,"forks":37,"open_issues":27,"watchers":203,"default_branch":"develop"}},"base":{"label":"Circular-Studios:develop","ref":"develop","sha":"0ba0e80ec7fe2dfdd77c09978e2507791df25665","user":{"login":"Circular-Studios","id":6377632,"avatar_url":"https://avatars.githubusercontent.com/u/6377632?v=3","gravatar_id":"","url":"https://api.github.com/users/Circular-Studios","html_url":"https://github.com/Circular-Studios","followers_url":"https://api.github.com/users/Circular-Studios/followers","following_url":"https://api.github.com/users/Circular-Studios/following{/other_user}","gists_url":"https://api.github.com/users/Circular-Studios/gists{/gist_id}","starred_url":"https://api.github.com/users/Circular-Studios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Circular-Studios/subscriptions","organizations_url":"https://api.github.com/users/Circular-Studios/orgs","repos_url":"https://api.github.com/users/Circular-Studios/repos","events_url":"https://api.github.com/users/Circular-Studios/events{/privacy}","received_events_url":"https://api.github.com/users/Circular-Studios/received_events","type":"Organization","site_admin":false},"repo":{"id":15827539,"name":"Dash","full_name":"Circular-Studios/Dash","owner":{"login":"Circular-Studios","id":6377632,"avatar_url":"https://avatars.githubusercontent.com/u/6377632?v=3","gravatar_id":"","url":"https://api.github.com/users/Circular-Studios","html_url":"https://github.com/Circular-Studios","followers_url":"https://api.github.com/users/Circular-Studios/followers","following_url":"https://api.github.com/users/Circular-Studios/following{/other_user}","gists_url":"https://api.github.com/users/Circular-Studios/gists{/gist_id}","starred_url":"https://api.github.com/users/Circular-Studios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Circular-Studios/subscriptions","organizations_url":"https://api.github.com/users/Circular-Studios/orgs","repos_url":"https://api.github.com/users/Circular-Studios/repos","events_url":"https://api.github.com/users/Circular-Studios/events{/privacy}","received_events_url":"https://api.github.com/users/Circular-Studios/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Circular-Studios/Dash","description":"A free and open 3D game engine written in D.","fork":false,"url":"https://api.github.com/repos/Circular-Studios/Dash","forks_url":"https://api.github.com/repos/Circular-Studios/Dash/forks","keys_url":"https://api.github.com/repos/Circular-Studios/Dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Circular-Studios/Dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Circular-Studios/Dash/teams","hooks_url":"https://api.github.com/repos/Circular-Studios/Dash/hooks","issue_events_url":"https://api.github.com/repos/Circular-Studios/Dash/issues/events{/number}","events_url":"https://api.github.com/repos/Circular-Studios/Dash/events","assignees_url":"https://api.github.com/repos/Circular-Studios/Dash/assignees{/user}","branches_url":"https://api.github.com/repos/Circular-Studios/Dash/branches{/branch}","tags_url":"https://api.github.com/repos/Circular-Studios/Dash/tags","blobs_url":"https://api.github.com/repos/Circular-Studios/Dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Circular-Studios/Dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Circular-Studios/Dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/Circular-Studios/Dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Circular-Studios/Dash/statuses/{sha}","languages_url":"https://api.github.com/repos/Circular-Studios/Dash/languages","stargazers_url":"https://api.github.com/repos/Circular-Studios/Dash/stargazers","contributors_url":"https://api.github.com/repos/Circular-Studios/Dash/contributors","subscribers_url":"https://api.github.com/repos/Circular-Studios/Dash/subscribers","subscription_url":"https://api.github.com/repos/Circular-Studios/Dash/subscription","commits_url":"https://api.github.com/repos/Circular-Studios/Dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/Circular-Studios/Dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/Circular-Studios/Dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/Circular-Studios/Dash/issues/comments/{number}","contents_url":"https://api.github.com/repos/Circular-Studios/Dash/contents/{+path}","compare_url":"https://api.github.com/repos/Circular-Studios/Dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Circular-Studios/Dash/merges","archive_url":"https://api.github.com/repos/Circular-Studios/Dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Circular-Studios/Dash/downloads","issues_url":"https://api.github.com/repos/Circular-Studios/Dash/issues{/number}","pulls_url":"https://api.github.com/repos/Circular-Studios/Dash/pulls{/number}","milestones_url":"https://api.github.com/repos/Circular-Studios/Dash/milestones{/number}","notifications_url":"https://api.github.com/repos/Circular-Studios/Dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Circular-Studios/Dash/labels{/name}","releases_url":"https://api.github.com/repos/Circular-Studios/Dash/releases{/id}","created_at":"2014-01-11T18:00:35Z","updated_at":"2015-01-13T01:00:47Z","pushed_at":"2015-01-13T01:29:20Z","git_url":"git://github.com/Circular-Studios/Dash.git","ssh_url":"git@github.com:Circular-Studios/Dash.git","clone_url":"https://github.com/Circular-Studios/Dash.git","svn_url":"https://github.com/Circular-Studios/Dash","homepage":"http://dash.circularstudios.com","size":39999,"stargazers_count":203,"watchers_count":203,"language":"D","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":27,"forks":37,"open_issues":27,"watchers":203,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Circular-Studios/Dash/pulls/238"},"html":{"href":"https://github.com/Circular-Studios/Dash/pull/238"},"issue":{"href":"https://api.github.com/repos/Circular-Studios/Dash/issues/238"},"comments":{"href":"https://api.github.com/repos/Circular-Studios/Dash/issues/238/comments"},"review_comments":{"href":"https://api.github.com/repos/Circular-Studios/Dash/pulls/238/comments"},"review_comment":{"href":"https://api.github.com/repos/Circular-Studios/Dash/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Circular-Studios/Dash/pulls/238/commits"},"statuses":{"href":"https://api.github.com/repos/Circular-Studios/Dash/statuses/d199f4a7d1052389026be7583f39768776559089"}}}}