aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-05-01 13:47:01 +1000
committerNeil <nyamatongwe@gmail.com>2018-05-01 13:47:01 +1000
commitcbaf771bba7302c98ec5dc8a6374b9a4d59351ff (patch)
tree1d35a2153b9bb0a374821f93861d0cbce0419aeb /win32/PlatWin.cxx
parent2d0860ae4620af68d33a1691bf48cdb45d6b14c6 (diff)
downloadscintilla-mirror-cbaf771bba7302c98ec5dc8a6374b9a4d59351ff.tar.gz
Backport: Use RectFromPRectangle to avoid casts.
Backport of changeset 6770:c14d2ee02108.
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r--win32/PlatWin.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index 90f04025e..f710f9fde 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -50,6 +50,8 @@
#include "DBCS.h"
#include "FontQuality.h"
+#include "PlatWin.h"
+
#ifndef SPI_GETFONTSMOOTHINGCONTRAST
#define SPI_GETFONTSMOOTHINGCONTRAST 0x200C
#endif
@@ -62,7 +64,7 @@ namespace Scintilla {
UINT CodePageFromCharSet(DWORD characterSet, UINT documentCodePage);
-static RECT RectFromPRectangle(PRectangle prc) {
+RECT RectFromPRectangle(PRectangle prc) {
RECT rc = {static_cast<LONG>(prc.left), static_cast<LONG>(prc.top),
static_cast<LONG>(prc.right), static_cast<LONG>(prc.bottom)};
return rc;