{"action":"created","comment":{"url":"https://api.github.com/repos/MarlinFirmware/Marlin/pulls/comments/60165156","id":60165156,"diff_hunk":"@@ -279,26 +279,32 @@ static void lcd_implementation_init() {\n \n static void lcd_implementation_clear() { } // Automatically cleared by Picture Loop\n \n+static void _draw_centered_temp(int temp, int x, int y) {\n+  int degsize = 6 * (temp >= 100 ? 3 : temp >= 10 ? 2 : 1); // number's pixel width\n+  u8g.setPrintPos(x - (18 - degsize) / 2, y); // move left if shorter\n+  lcd_print(itostr3(temp));\n+  lcd_printPGM(PSTR(LCD_STR_DEGREE \" \"));\n+}\n+","path":"Marlin/dogm_lcd_implementation.h","position":10,"original_position":10,"commit_id":"b73defd96a04f049c39d0dc487c794c291abbcce","original_commit_id":"b73defd96a04f049c39d0dc487c794c291abbcce","user":{"login":"thinkyhead","id":698003,"avatar_url":"https://avatars.githubusercontent.com/u/698003?v=3","gravatar_id":"","url":"https://api.github.com/users/thinkyhead","html_url":"https://github.com/thinkyhead","followers_url":"https://api.github.com/users/thinkyhead/followers","following_url":"https://api.github.com/users/thinkyhead/following{/other_user}","gists_url":"https://api.github.com/users/thinkyhead/gists{/gist_id}","starred_url":"https://api.github.com/users/thinkyhead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thinkyhead/subscriptions","organizations_url":"https://api.github.com/users/thinkyhead/orgs","repos_url":"https://api.github.com/users/thinkyhead/repos","events_url":"https://api.github.com/users/thinkyhead/events{/privacy}","received_events_url":"https://api.github.com/users/thinkyhead/received_events","type":"User","site_admin":false},"body":"Better to have this `FORCE_INLINE`? I bet we can find a few other places to chop down cycles too, yet still maintain a nice aesthetic.","created_at":"2016-04-19T02:16:32Z","updated_at":"2016-04-19T02:16:32Z","html_url":"https://github.com/MarlinFirmware/Marlin/pull/3560#discussion_r60165156","pull_request_url":"https://api.github.com/repos/MarlinFirmware/Marlin/pulls/3560","_links":{"self":{"href":"https://api.github.com/repos/MarlinFirmware/Marlin/pulls/comments/60165156"},"html":{"href":"https://github.com/MarlinFirmware/Marlin/pull/3560#discussion_r60165156"},"pull_request":{"href":"https://api.github.com/repos/MarlinFirmware/Marlin/pulls/3560"}}},"pull_request":{"url":"https://api.github.com/repos/MarlinFirmware/Marlin/pulls/3560","id":66944825,"html_url":"https://github.com/MarlinFirmware/Marlin/pull/3560","diff_url":"https://github.com/MarlinFirmware/Marlin/pull/3560.diff","patch_url":"https://github.com/MarlinFirmware/Marlin/pull/3560.patch","issue_url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/3560","number":3560,"state":"open","locked":false,"title":"Aesthetic, functional improvements for Graphical Display","user":{"login":"thinkyhead","id":698003,"avatar_url":"https://avatars.githubusercontent.com/u/698003?v=3","gravatar_id":"","url":"https://api.github.com/users/thinkyhead","html_url":"https://github.com/thinkyhead","followers_url":"https://api.github.com/users/thinkyhead/followers","following_url":"https://api.github.com/users/thinkyhead/following{/other_user}","gists_url":"https://api.github.com/users/thinkyhead/gists{/gist_id}","starred_url":"https://api.github.com/users/thinkyhead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thinkyhead/subscriptions","organizations_url":"https://api.github.com/users/thinkyhead/orgs","repos_url":"https://api.github.com/users/thinkyhead/repos","events_url":"https://api.github.com/users/thinkyhead/events{/privacy}","received_events_url":"https://api.github.com/users/thinkyhead/received_events","type":"User","site_admin":false},"body":"I just got a Graphical Display, so of course the first thing I did was fix some display issues and improve the aesthetic a little bit. See if this agrees with your taste and preferences.\r\n\r\nOne bug / issue is fixed. X and Y can now show negative values. The decimal point is sacrificed for all cases. It could be revived for positive values. (It would be good to consolidate the number-to-string routines a little at the same time.)\r\n\r\n- Nozzle / Bed Temperatures are now centered with their graphic.\r\n- Display X, Y, Z prefixes in uppercase\r\n- Don't display a faux colon after the X, Y, Z labels\r\n- XY are now displayed in the same style as character displays:\r\n  - `___4` - 1 digit\r\n  - `__25` - 2 digits\r\n  - `_172` - 3 digits\r\n  - `__-5` - 1 digit, negative\r\n  - `_-99` - 2 digit, negative\r\n  - `-999` - 3 digit, negative\r\n- Display a blank space instead of `--:--` before the print timer is set\r\n- Display a blank space instead of `---` when the fan is off\r\n\r\n![Heating up…](http://i.imgur.com/rWKrCMo.jpg)\r\n![Stopped print with XYZ blinking…](http://i.imgur.com/QWqxxSp.jpg)","created_at":"2016-04-19T00:44:50Z","updated_at":"2016-04-19T02:16:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7d5922b7d32e4db4068f0f2e59cdb51011b3e786","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MarlinFirmware/Marlin/pulls/3560/commits","review_comments_url":"https://api.github.com/repos/MarlinFirmware/Marlin/pulls/3560/comments","review_comment_url":"https://api.github.com/repos/MarlinFirmware/Marlin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/3560/comments","statuses_url":"https://api.github.com/repos/MarlinFirmware/Marlin/statuses/b73defd96a04f049c39d0dc487c794c291abbcce","head":{"label":"thinkyhead:rc_better_graphical_lcd","ref":"rc_better_graphical_lcd","sha":"b73defd96a04f049c39d0dc487c794c291abbcce","user":{"login":"thinkyhead","id":698003,"avatar_url":"https://avatars.githubusercontent.com/u/698003?v=3","gravatar_id":"","url":"https://api.github.com/users/thinkyhead","html_url":"https://github.com/thinkyhead","followers_url":"https://api.github.com/users/thinkyhead/followers","following_url":"https://api.github.com/users/thinkyhead/following{/other_user}","gists_url":"https://api.github.com/users/thinkyhead/gists{/gist_id}","starred_url":"https://api.github.com/users/thinkyhead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thinkyhead/subscriptions","organizations_url":"https://api.github.com/users/thinkyhead/orgs","repos_url":"https://api.github.com/users/thinkyhead/repos","events_url":"https://api.github.com/users/thinkyhead/events{/privacy}","received_events_url":"https://api.github.com/users/thinkyhead/received_events","type":"User","site_admin":false},"repo":{"id":24809835,"name":"Marlin","full_name":"thinkyhead/Marlin","owner":{"login":"thinkyhead","id":698003,"avatar_url":"https://avatars.githubusercontent.com/u/698003?v=3","gravatar_id":"","url":"https://api.github.com/users/thinkyhead","html_url":"https://github.com/thinkyhead","followers_url":"https://api.github.com/users/thinkyhead/followers","following_url":"https://api.github.com/users/thinkyhead/following{/other_user}","gists_url":"https://api.github.com/users/thinkyhead/gists{/gist_id}","starred_url":"https://api.github.com/users/thinkyhead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thinkyhead/subscriptions","organizations_url":"https://api.github.com/users/thinkyhead/orgs","repos_url":"https://api.github.com/users/thinkyhead/repos","events_url":"https://api.github.com/users/thinkyhead/events{/privacy}","received_events_url":"https://api.github.com/users/thinkyhead/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thinkyhead/Marlin","description":"This fork is a primary contributor to the MarlinFirmware/Marlin release branch, frequently pushing bug fixes, new features, and code cleanup. See the Wiki page for details. If any of the experimental branches here look interesting please contribute! Branches with \"i3_millie\" in the name include all the latest goodies, optimized for my RAMPS-based Prusa i3.","fork":true,"url":"https://api.github.com/repos/thinkyhead/Marlin","forks_url":"https://api.github.com/repos/thinkyhead/Marlin/forks","keys_url":"https://api.github.com/repos/thinkyhead/Marlin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thinkyhead/Marlin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thinkyhead/Marlin/teams","hooks_url":"https://api.github.com/repos/thinkyhead/Marlin/hooks","issue_events_url":"https://api.github.com/repos/thinkyhead/Marlin/issues/events{/number}","events_url":"https://api.github.com/repos/thinkyhead/Marlin/events","assignees_url":"https://api.github.com/repos/thinkyhead/Marlin/assignees{/user}","branches_url":"https://api.github.com/repos/thinkyhead/Marlin/branches{/branch}","tags_url":"https://api.github.com/repos/thinkyhead/Marlin/tags","blobs_url":"https://api.github.com/repos/thinkyhead/Marlin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thinkyhead/Marlin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thinkyhead/Marlin/git/refs{/sha}","trees_url":"https://api.github.com/repos/thinkyhead/Marlin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thinkyhead/Marlin/statuses/{sha}","languages_url":"https://api.github.com/repos/thinkyhead/Marlin/languages","stargazers_url":"https://api.github.com/repos/thinkyhead/Marlin/stargazers","contributors_url":"https://api.github.com/repos/thinkyhead/Marlin/contributors","subscribers_url":"https://api.github.com/repos/thinkyhead/Marlin/subscribers","subscription_url":"https://api.github.com/repos/thinkyhead/Marlin/subscription","commits_url":"https://api.github.com/repos/thinkyhead/Marlin/commits{/sha}","git_commits_url":"https://api.github.com/repos/thinkyhead/Marlin/git/commits{/sha}","comments_url":"https://api.github.com/repos/thinkyhead/Marlin/comments{/number}","issue_comment_url":"https://api.github.com/repos/thinkyhead/Marlin/issues/comments{/number}","contents_url":"https://api.github.com/repos/thinkyhead/Marlin/contents/{+path}","compare_url":"https://api.github.com/repos/thinkyhead/Marlin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thinkyhead/Marlin/merges","archive_url":"https://api.github.com/repos/thinkyhead/Marlin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thinkyhead/Marlin/downloads","issues_url":"https://api.github.com/repos/thinkyhead/Marlin/issues{/number}","pulls_url":"https://api.github.com/repos/thinkyhead/Marlin/pulls{/number}","milestones_url":"https://api.github.com/repos/thinkyhead/Marlin/milestones{/number}","notifications_url":"https://api.github.com/repos/thinkyhead/Marlin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thinkyhead/Marlin/labels{/name}","releases_url":"https://api.github.com/repos/thinkyhead/Marlin/releases{/id}","deployments_url":"https://api.github.com/repos/thinkyhead/Marlin/deployments","created_at":"2014-10-05T06:17:14Z","updated_at":"2016-03-07T05:51:14Z","pushed_at":"2016-04-19T02:04:54Z","git_url":"git://github.com/thinkyhead/Marlin.git","ssh_url":"git@github.com:thinkyhead/Marlin.git","clone_url":"https://github.com/thinkyhead/Marlin.git","svn_url":"https://github.com/thinkyhead/Marlin","homepage":"http://www.thinkyhead.com/","size":28246,"stargazers_count":8,"watchers_count":8,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":8,"default_branch":"i3_millie_RC4"}},"base":{"label":"MarlinFirmware:RCBugFix","ref":"RCBugFix","sha":"09c6323b68567bccd44ee0a89a8f3084cc0efca9","user":{"login":"MarlinFirmware","id":10418365,"avatar_url":"https://avatars.githubusercontent.com/u/10418365?v=3","gravatar_id":"","url":"https://api.github.com/users/MarlinFirmware","html_url":"https://github.com/MarlinFirmware","followers_url":"https://api.github.com/users/MarlinFirmware/followers","following_url":"https://api.github.com/users/MarlinFirmware/following{/other_user}","gists_url":"https://api.github.com/users/MarlinFirmware/gists{/gist_id}","starred_url":"https://api.github.com/users/MarlinFirmware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarlinFirmware/subscriptions","organizations_url":"https://api.github.com/users/MarlinFirmware/orgs","repos_url":"https://api.github.com/users/MarlinFirmware/repos","events_url":"https://api.github.com/users/MarlinFirmware/events{/privacy}","received_events_url":"https://api.github.com/users/MarlinFirmware/received_events","type":"Organization","site_admin":false},"repo":{"id":2200856,"name":"Marlin","full_name":"MarlinFirmware/Marlin","owner":{"login":"MarlinFirmware","id":10418365,"avatar_url":"https://avatars.githubusercontent.com/u/10418365?v=3","gravatar_id":"","url":"https://api.github.com/users/MarlinFirmware","html_url":"https://github.com/MarlinFirmware","followers_url":"https://api.github.com/users/MarlinFirmware/followers","following_url":"https://api.github.com/users/MarlinFirmware/following{/other_user}","gists_url":"https://api.github.com/users/MarlinFirmware/gists{/gist_id}","starred_url":"https://api.github.com/users/MarlinFirmware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarlinFirmware/subscriptions","organizations_url":"https://api.github.com/users/MarlinFirmware/orgs","repos_url":"https://api.github.com/users/MarlinFirmware/repos","events_url":"https://api.github.com/users/MarlinFirmware/events{/privacy}","received_events_url":"https://api.github.com/users/MarlinFirmware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MarlinFirmware/Marlin","description":"Reprap FW with look ahead. SDcard and LCD support. It works on Gen6, Ultimaker, RAMPS and Sanguinololu","fork":false,"url":"https://api.github.com/repos/MarlinFirmware/Marlin","forks_url":"https://api.github.com/repos/MarlinFirmware/Marlin/forks","keys_url":"https://api.github.com/repos/MarlinFirmware/Marlin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MarlinFirmware/Marlin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MarlinFirmware/Marlin/teams","hooks_url":"https://api.github.com/repos/MarlinFirmware/Marlin/hooks","issue_events_url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/events{/number}","events_url":"https://api.github.com/repos/MarlinFirmware/Marlin/events","assignees_url":"https://api.github.com/repos/MarlinFirmware/Marlin/assignees{/user}","branches_url":"https://api.github.com/repos/MarlinFirmware/Marlin/branches{/branch}","tags_url":"https://api.github.com/repos/MarlinFirmware/Marlin/tags","blobs_url":"https://api.github.com/repos/MarlinFirmware/Marlin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MarlinFirmware/Marlin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MarlinFirmware/Marlin/git/refs{/sha}","trees_url":"https://api.github.com/repos/MarlinFirmware/Marlin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MarlinFirmware/Marlin/statuses/{sha}","languages_url":"https://api.github.com/repos/MarlinFirmware/Marlin/languages","stargazers_url":"https://api.github.com/repos/MarlinFirmware/Marlin/stargazers","contributors_url":"https://api.github.com/repos/MarlinFirmware/Marlin/contributors","subscribers_url":"https://api.github.com/repos/MarlinFirmware/Marlin/subscribers","subscription_url":"https://api.github.com/repos/MarlinFirmware/Marlin/subscription","commits_url":"https://api.github.com/repos/MarlinFirmware/Marlin/commits{/sha}","git_commits_url":"https://api.github.com/repos/MarlinFirmware/Marlin/git/commits{/sha}","comments_url":"https://api.github.com/repos/MarlinFirmware/Marlin/comments{/number}","issue_comment_url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/comments{/number}","contents_url":"https://api.github.com/repos/MarlinFirmware/Marlin/contents/{+path}","compare_url":"https://api.github.com/repos/MarlinFirmware/Marlin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MarlinFirmware/Marlin/merges","archive_url":"https://api.github.com/repos/MarlinFirmware/Marlin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MarlinFirmware/Marlin/downloads","issues_url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues{/number}","pulls_url":"https://api.github.com/repos/MarlinFirmware/Marlin/pulls{/number}","milestones_url":"https://api.github.com/repos/MarlinFirmware/Marlin/milestones{/number}","notifications_url":"https://api.github.com/repos/MarlinFirmware/Marlin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MarlinFirmware/Marlin/labels{/name}","releases_url":"https://api.github.com/repos/MarlinFirmware/Marlin/releases{/id}","deployments_url":"https://api.github.com/repos/MarlinFirmware/Marlin/deployments","created_at":"2011-08-13T08:07:20Z","updated_at":"2016-04-18T21:18:34Z","pushed_at":"2016-04-19T02:07:05Z","git_url":"git://github.com/MarlinFirmware/Marlin.git","ssh_url":"git@github.com:MarlinFirmware/Marlin.git","clone_url":"https://github.com/MarlinFirmware/Marlin.git","svn_url":"https://github.com/MarlinFirmware/Marlin","homepage":"","size":45957,"stargazers_count":1675,"watchers_count":1675,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2943,"mirror_url":null,"open_issues_count":245,"forks":2943,"open_issues":245,"watchers":1675,"default_branch":"RC"}},"_links":{"self":{"href":"https://api.github.com/repos/MarlinFirmware/Marlin/pulls/3560"},"html":{"href":"https://github.com/MarlinFirmware/Marlin/pull/3560"},"issue":{"href":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/3560"},"comments":{"href":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/3560/comments"},"review_comments":{"href":"https://api.github.com/repos/MarlinFirmware/Marlin/pulls/3560/comments"},"review_comment":{"href":"https://api.github.com/repos/MarlinFirmware/Marlin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MarlinFirmware/Marlin/pulls/3560/commits"},"statuses":{"href":"https://api.github.com/repos/MarlinFirmware/Marlin/statuses/b73defd96a04f049c39d0dc487c794c291abbcce"}}}}