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
commit6065b35281afe152b61d346850bbcdd8e26419ee (patch)
treeb38d6144827db68adbdc61ffee5c64a1caaa590a /win32/PlatWin.cxx
parent305b903fe092c08d2873785d1e2638cbfbe831ab (diff)
downloadscintilla-mirror-6065b35281afe152b61d346850bbcdd8e26419ee.tar.gz
Use RectFromPRectangle to avoid casts.
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 4d31e5af5..71e31e59d 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -49,6 +49,8 @@
#include "DBCS.h"
#include "FontQuality.h"
+#include "PlatWin.h"
+
#ifndef SPI_GETFONTSMOOTHINGCONTRAST
#define SPI_GETFONTSMOOTHINGCONTRAST 0x200C
#endif
@@ -61,7 +63,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;