diff options
author | Markus Nißl <unknown> | 2022-09-02 10:55:40 +1000 |
---|---|---|
committer | Markus Nißl <unknown> | 2022-09-02 10:55:40 +1000 |
commit | 4faa21ad78c41b863ad0ca9b205cf48a025c229e (patch) | |
tree | 81bfc9c106ce9926300dd4f1f0c53bd0e156c9a1 /src/Geometry.h | |
parent | ed6f18d6bf0e71014de9193a88e4b9cf5a957d2f (diff) | |
download | scintilla-mirror-4faa21ad78c41b863ad0ca9b205cf48a025c229e.tar.gz |
Add PixelAlignCeil and call PixelAlign* to avoid repeated code.
Diffstat (limited to 'src/Geometry.h')
-rw-r--r-- | src/Geometry.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Geometry.h b/src/Geometry.h index 5a9b3e291..4fd90afad 100644 --- a/src/Geometry.h +++ b/src/Geometry.h @@ -149,6 +149,7 @@ Interval HorizontalBounds(PRectangle rc) noexcept; XYPOSITION PixelAlign(XYPOSITION xy, int pixelDivisions) noexcept; XYPOSITION PixelAlignFloor(XYPOSITION xy, int pixelDivisions) noexcept; +XYPOSITION PixelAlignCeil(XYPOSITION xy, int pixelDivisions) noexcept; Point PixelAlign(const Point &pt, int pixelDivisions) noexcept; |