-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WindowSize::ScaledPixels doesn't work correctly #49
Comments
What you're describing sounds like the intended behaviour -- Speedy2D's drawing functions work with physical pixels, and it's up to the application to decide how to perform scaling. Speedy2D notifies the application when the scale factor changes, but will not attempt to scale your content automatically or change the size of the window. Simply multiplying the coordinates by the scaling factor isn't always a sensible thing to do. For example, if the scaling factor is 150%, some lines which were previously pixel-aligned will now be halfway between two pixels, and the result will be blurry. The application may want to handle this more intelligently, e.g. by rounding to an integer number of pixels. Similarly, when drawing images, the application needs to be aware of the real physical resolution of the screen.
Could you give more details please? Specifically:
|
Hmm ok, I unserstand. So that means I have to do calculations by hand, if I understood correctly?
I'm using MacOS 10.15.7. |
The text was updated successfully, but these errors were encountered: