diff options
author | Neil <nyamatongwe@gmail.com> | 2025-02-20 08:28:27 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2025-02-20 08:28:27 +1100 |
commit | c095018183f100e044ee749aa5b99ac913b7637b (patch) | |
tree | 6b85ee27526e59ad8ba467c354cbd5d2884ffa8f /win32/PlatWin.cxx | |
parent | 444aa02e383a80ddcaa5611a7bf0a4e55ac454d6 (diff) | |
download | scintilla-mirror-c095018183f100e044ee749aa5b99ac913b7637b.tar.gz |
Move SizeOfRect to header to allow use in ScintillaWin.cxx where it simplifies
and avoids type warnings.
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r-- | win32/PlatWin.cxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 1007e22de..a4fd552b2 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -1056,10 +1056,6 @@ ColourRGBA GradientValue(const std::vector<ColourStop> &stops, XYPOSITION propor return ColourRGBA(); } -constexpr SIZE SizeOfRect(RECT rc) noexcept { - return { rc.right - rc.left, rc.bottom - rc.top }; -} - constexpr BLENDFUNCTION mergeAlpha = { AC_SRC_OVER, 0, 255, AC_SRC_ALPHA }; } |