diff options
author | nyamatongwe <unknown> | 2000-07-22 06:51:09 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-07-22 06:51:09 +0000 |
commit | c8ab474fa173218cfe16309c8fbf37ab29635ccc (patch) | |
tree | e7dec8b009cb188dfeae386c35b8a845114d13dd /gtk/PlatGTK.cxx | |
parent | 1e00d4f26ac7e2a7ac67195c0a3516f832edf34c (diff) | |
download | scintilla-mirror-c8ab474fa173218cfe16309c8fbf37ab29635ccc.tar.gz |
Updates to make new API work on both GTK+ and Win32.
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) { |