From 789944504ac424f1b863668a5079a8cc154b1bee Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 3 May 2014 12:38:27 +1000 Subject: Move RoundXYPosition to global header to enable use in more modules. --- include/Platform.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') 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 -- cgit v1.2.3