diff options
| author | mitchell <unknown> | 2020-01-03 19:26:20 -0500 |
|---|---|---|
| committer | mitchell <unknown> | 2020-01-03 19:26:20 -0500 |
| commit | 40b67336c8ac74c0ce729035b7b088c8ba0ca6ad (patch) | |
| tree | 44e75c492ba7287a02ff9a87b227f87c6487c26b /win32 | |
| parent | d4b4c6d814940d9178284e0af69f574fdce77da0 (diff) | |
| download | scintilla-mirror-40b67336c8ac74c0ce729035b7b088c8ba0ca6ad.tar.gz | |
Fixed a build error on Windows introduced by r7280 (changeset 9cf6a15d6c85).
Diffstat (limited to 'win32')
| -rw-r--r-- | win32/PlatWin.cxx | 6 | ||||
| -rw-r--r-- | win32/PlatWin.h | 6 |
2 files changed, 7 insertions, 5 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 44e758698..6553b7486 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -67,6 +67,12 @@ namespace Scintilla { UINT CodePageFromCharSet(DWORD characterSet, UINT documentCodePage); +RECT RectFromPRectangle(PRectangle prc) noexcept { + RECT rc = { static_cast<LONG>(prc.left), static_cast<LONG>(prc.top), + static_cast<LONG>(prc.right), static_cast<LONG>(prc.bottom) }; + return rc; +} + #if defined(USE_D2D) IDWriteFactory *pIDWriteFactory = nullptr; ID2D1Factory *pD2DFactory = nullptr; diff --git a/win32/PlatWin.h b/win32/PlatWin.h index 2a1bcb649..cf357f72d 100644 --- a/win32/PlatWin.h +++ b/win32/PlatWin.h @@ -13,11 +13,7 @@ namespace Scintilla { extern void Platform_Initialise(void *hInstance); extern void Platform_Finalise(bool fromDllMain); -RECT RectFromPRectangle(PRectangle prc) noexcept { - RECT rc = { static_cast<LONG>(prc.left), static_cast<LONG>(prc.top), - static_cast<LONG>(prc.right), static_cast<LONG>(prc.bottom) }; - return rc; -} +RECT RectFromPRectangle(PRectangle prc) noexcept; #if defined(USE_D2D) extern bool LoadD2D(); |
