-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DPI: Revise 1/96" to/from native pixel conversions
The metric types have been (temporarily) replaced by typed int. Pixels have been split to `type Pixel96DPI int` and `type Pixel int`. The former represents 1/96" pixels, the later represents native pixels. By switching to separate sets of metric types Go errored everywhere where DPI conversion was missing or was excessive. All incompatibilities were revised - some were fixed, others were marked by "TODO" to get fixed in future commits. Furthermore, Canvas was extended to provide `...Pixels` method variants. Signed-off-by: Simon Rozman <simon@rozman.si>
- Loading branch information
Showing
61 changed files
with
1,090 additions
and
744 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.