From 6ddd50e769f9c24a5288561ad7e04d64288ae695 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 9 Apr 2013 00:21:55 +0000 Subject: [PATCH] include clipboard stuff for mac. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4308 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_vidmacos.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/engine/gl/gl_vidmacos.c b/engine/gl/gl_vidmacos.c index b85057af8..9d8442e04 100644 --- a/engine/gl/gl_vidmacos.c +++ b/engine/gl/gl_vidmacos.c @@ -218,3 +218,20 @@ void INS_Commands (void) void INS_Move (float *movements, int pnum) { } + +#define SYS_CLIPBOARD_SIZE 256 +static char clipboard_buffer[SYS_CLIPBOARD_SIZE] = {0}; + +char *Sys_GetClipboard(void) +{ + return clipboard_buffer; +} + +void Sys_CloseClipboard(char *bf) +{ +} + +void Sys_SaveClipboard(char *text) +{ + Q_strncpyz(clipboard_buffer, text, SYS_CLIPBOARD_SIZE); +}