mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-04-11 20:51:37 +00:00
Remove support for the Windows clipboard
This was just broken and rewriting it is not worth the efford
This commit is contained in:
parent
67a147014a
commit
21ab0de692
3 changed files with 0 additions and 28 deletions
1
TODO
1
TODO
|
@ -2,7 +2,6 @@ Windows Port TODO
|
|||
-----------------
|
||||
|
||||
- Check WITH_SYSTEMWIDE
|
||||
- Is Sys_GetClipboardData() really usefull?
|
||||
- Call Sys_AppActivate() in cl_main.c? (otherwise remove it)
|
||||
- Is Sys_GetGameAPI() correct?
|
||||
- Add platform defines for Windows in common/ and game/
|
||||
|
|
|
@ -739,7 +739,6 @@ void Sys_ConsoleOutput (char *string);
|
|||
void Sys_SendKeyEvents (void);
|
||||
void Sys_Error (char *error, ...);
|
||||
void Sys_Quit (void);
|
||||
char *Sys_GetClipboardData( void );
|
||||
|
||||
/* CLIENT / SERVER SYSTEMS */
|
||||
|
||||
|
|
|
@ -353,32 +353,6 @@ Sys_SendKeyEvents(void)
|
|||
sys_frame_time = timeGetTime();
|
||||
}
|
||||
|
||||
char *
|
||||
Sys_GetClipboardData(void)
|
||||
{
|
||||
char *data = NULL;
|
||||
char *cliptext;
|
||||
|
||||
if (OpenClipboard(NULL) != 0)
|
||||
{
|
||||
HANDLE hClipboardData;
|
||||
|
||||
if ((hClipboardData = GetClipboardData(CF_TEXT)) != 0)
|
||||
{
|
||||
if ((cliptext = GlobalLock(hClipboardData)) != 0)
|
||||
{
|
||||
data = malloc(GlobalSize(hClipboardData) + 1);
|
||||
strcpy(data, cliptext);
|
||||
GlobalUnlock(hClipboardData);
|
||||
}
|
||||
}
|
||||
|
||||
CloseClipboard();
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
/* ================================================================ */
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue