summaryrefslogtreecommitdiff
path: root/os2.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-03-19 22:36:13 +0000
committercelestar <celestar@openttd.org>2005-03-19 22:36:13 +0000
commitfe8313159a01fcde746fd3962745d87848ce99b6 (patch)
treeae155e4729f3ccdb51b58d4d003cd31f449018f7 /os2.c
parentd2ae7dd186517b948311dc42e5f76933f8715ede (diff)
downloadopenttd-fe8313159a01fcde746fd3962745d87848ce99b6.tar.xz
(svn r2028) Added detection of SVN version (rev.c generation) for OS/2, updated readme, initial clipboard support (orudge)
Diffstat (limited to 'os2.c')
-rw-r--r--os2.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/os2.c b/os2.c
index 2764c3454..4c4b93325 100644
--- a/os2.c
+++ b/os2.c
@@ -15,6 +15,7 @@
#define INCL_DOS
#define INCL_OS2MM
#define INCL_WIN
+#define INCL_WINCLIPBOARD
#include <os2.h>
#include <os2me.h>
@@ -687,6 +688,21 @@ const HalMusicDriver _os2_music_driver = {
bool InsertTextBufferClipboard(Textbuf *tb)
{
+#if 0
+ HAB hab = 0; // anchor-block handle
+ PSZ pszClipText, pszLocalText;
+
+ if (WinOpenClipbrd(hab))
+ {
+ if (pszClipText = (PSZ) WinQueryClipbrdData(hab, CF_TEXT))
+ {
+ while (*pszLocalText++ = *pszClipText++);
+ }
+ WinCloseClipbrd(hab);
+ }
+
+ // text is now in pszLocalText, do something with it!
+#endif
// TODO
return false;
}