Title: Window size discrepancy on HighDPI monitor · Issue #198 · processing/libprocessing · GitHub
Open Graph Title: Window size discrepancy on HighDPI monitor · Issue #198 · processing/libprocessing
X Title: Window size discrepancy on HighDPI monitor · Issue #198 · processing/libprocessing
Description: Running the same sketch on a HighDPI monitor appears to create a larger window than necessary. 4K HighDPI monitor 1080p monitor Version: mewnala 0.0.7 Code """ Redraw. The redraw() function makes draw() execute once. In this example, dra...
Open Graph Description: Running the same sketch on a HighDPI monitor appears to create a larger window than necessary. 4K HighDPI monitor 1080p monitor Version: mewnala 0.0.7 Code """ Redraw. The redraw() function makes d...
X Description: Running the same sketch on a HighDPI monitor appears to create a larger window than necessary. 4K HighDPI monitor 1080p monitor Version: mewnala 0.0.7 Code """ Redraw. The redraw() f...
Opengraph URL: https://github.com/processing/libprocessing/issues/198
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Window size discrepancy on HighDPI monitor","articleBody":"Running the same sketch on a HighDPI monitor appears to create a larger window than necessary.\n\n## 4K HighDPI monitor\n\n\u003cimg width=\"1920\" height=\"1050\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/10c589f4-487f-4f16-aec4-237e6de5ec3c\" /\u003e\n\n## 1080p monitor\n\n\u003cimg width=\"1918\" height=\"1050\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/e15eb255-7063-4aee-a605-9b6c55df0fcb\" /\u003e\n\nVersion: mewnala 0.0.7\n\n## Code\n\n```python\n\"\"\"\nRedraw. \n \nThe redraw() function makes draw() execute once. \nIn this example, draw() is executed once every time \nthe mouse is clicked. \n\"\"\"\nfrom mewnala import *\n\ny = 180\n\ndef setup():\n \"\"\" \n The statements in the setup() function \n execute once when the program begins.\n \"\"\"\n size(640, 360) # Size should be the first statement\n stroke(255) # Set line drawing color to white\n no_loop()\n\n\ndef draw():\n \"\"\"\n The statements in draw() are executed until the\n program is stopped. Each statement is executed in\n sequence and after the last line is read, the first\n line is executed again.\n \"\"\"\n global y\n background(0) # Set the background to black\n y = y - 4\n if (y \u003c 0):\n y = height\n line(0, y, width, y)\n\n\ndef mouse_pressed():\n redraw()\n\nrun()\n\n```","author":{"url":"https://github.com/SableRaf","@type":"Person","name":"SableRaf"},"datePublished":"2026-07-13T17:23:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/198/libprocessing/issues/198"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e876e48b-95b1-4ee4-63b2-00e435b9f176 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DDFA:3B1D59:35425E9:46B6C00:6A5D154B |
| html-safe-nonce | da5862b3b2247c2f65d8f6a7838fbee4d7adccbc5074970ad9c634f0bc1d3a3a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREZBOjNCMUQ1OTozNTQyNUU5OjQ2QjZDMDA6NkE1RDE1NEIiLCJ2aXNpdG9yX2lkIjoiMjI3NzI2MzczNTk2OTg3OTM3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ac5c9d9bfad23a952efeba17fa1e7561768b027d18b9001c3a19b895d7a7c976 |
| hovercard-subject-tag | issue:4876015547 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/processing/libprocessing/198/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5341ee774947c988a98de330cdeb45cec1847e4f96fa77957ddf2d89f67c690c/processing/libprocessing/issues/198 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5341ee774947c988a98de330cdeb45cec1847e4f96fa77957ddf2d89f67c690c/processing/libprocessing/issues/198 |
| og:image:alt | Running the same sketch on a HighDPI monitor appears to create a larger window than necessary. 4K HighDPI monitor 1080p monitor Version: mewnala 0.0.7 Code """ Redraw. The redraw() function makes d... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SableRaf |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/processing/libprocessing git https://github.com/processing/libprocessing.git |
| octolytics-dimension-user_id | 1617169 |
| octolytics-dimension-user_login | processing |
| octolytics-dimension-repository_id | 1101329545 |
| octolytics-dimension-repository_nwo | processing/libprocessing |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1101329545 |
| octolytics-dimension-repository_network_root_nwo | processing/libprocessing |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width