diff options
Diffstat (limited to 'gtk/PlatGTK.cxx')
-rw-r--r-- | gtk/PlatGTK.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 32323e807..40c8c76af 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -13,11 +13,10 @@ #include "ScintillaWidget.h" #include "Scintilla.h" -#define LOWORD(x) (x & 0xffff) -#define HIWORD(x) (x >> 16) - Point Point::FromLong(long lpoint) { - return Point(LOWORD(lpoint), HIWORD(lpoint)); + return Point( + Platform::LowShortFromLong(lpoint), + Platform::HighShortFromLong(lpoint)); } static GdkColor ColourfromRGB(unsigned int red, unsigned int green, unsigned int blue) { |