aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/Platform.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-05-03 12:38:27 +1000
committerNeil <nyamatongwe@gmail.com>2014-05-03 12:38:27 +1000
commit789944504ac424f1b863668a5079a8cc154b1bee (patch)
tree5143863f1a107e1864c8afd2a1eb482fb9c27fee /include/Platform.h
parent192b8f4a80ac6020c2c8ee5d06911d3e261c78a3 (diff)
downloadscintilla-mirror-789944504ac424f1b863668a5079a8cc154b1bee.tar.gz
Move RoundXYPosition to global header to enable use in more modules.
Diffstat (limited to 'include/Platform.h')
-rw-r--r--include/Platform.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/Platform.h b/include/Platform.h
index 7683c9c84..f3a3362f8 100644
--- a/include/Platform.h
+++ b/include/Platform.h
@@ -77,7 +77,9 @@ namespace Scintilla {
typedef float XYPOSITION;
typedef double XYACCUMULATOR;
-//#define XYPOSITION int
+inline int RoundXYPosition(XYPOSITION xyPos) {
+ return int(xyPos + 0.5);
+}
// Underlying the implementation of the platform classes are platform specific types.
// Sometimes these need to be passed around by client code so they are defined here