diff options
author | nyamatongwe <devnull@localhost> | 2000-07-22 06:51:09 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2000-07-22 06:51:09 +0000 |
commit | 2701a4c8c7e2dea4cbd604146b58c81bbef0355a (patch) | |
tree | e7dec8b009cb188dfeae386c35b8a845114d13dd /gtk/PlatGTK.cxx | |
parent | a34352a312296ed8c9c0d7b9e94c402465530d2b (diff) | |
download | scintilla-mirror-2701a4c8c7e2dea4cbd604146b58c81bbef0355a.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) { |