Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
On Retina displays view/window coordinates are logical points not pixels and
window.backingScaleFactor
represents how many pixels are covered by single coordinate point.This change effectively makes LAF UI 2x smaller on Retina displays, but allows drawing at native Retina resolution.
A picture is worth a thousand words: (NOTE: Click on the image to see it on full 2x/Retina scale)
Picture above depicts Aseprite using 400% scale on Retina and using TTF font instead of bitmap font.
I understand this change may be completely irrelevant for most of the Aseprite users using default UI settings, but if you want to use TTF font this change actually makes all TTF fonts look crisp on macOS Retina displays. And I prefer to have TTF font on my Retina display rather than default bitmap font, that I find hard to read 馃檮
I agree that my contributions are licensed under the Laf license, and agree to future changes to the licensing.