Release 1.1.1

This commit is contained in:
UnknownShadow200 2019-12-16 14:25:35 +11:00
parent cb3344c629
commit c943e7ca33
2 changed files with 15 additions and 10 deletions

View File

@ -5,18 +5,18 @@
*/
#define GAME_MAX_CMDARGS 5
#define GAME_APP_VER "1.1.0"
#define GAME_APP_VER "1.1.1"
#define GAME_API_VER 1
#if defined CC_BUILD_WEB
#define GAME_APP_NAME "ClassiCube web client"
#define GAME_APP_TITLE "ClassiCube"
#elif defined CC_BUILD_COCOA
#define GAME_APP_NAME "ClassiCube 1.1.0 alpha"
#define GAME_APP_TITLE "ClassiCube 1.1.0 alpha"
#define GAME_APP_NAME "ClassiCube 1.1.1 alpha"
#define GAME_APP_TITLE "ClassiCube 1.1.1 alpha"
#else
#define GAME_APP_NAME "ClassiCube 1.1.0"
#define GAME_APP_TITLE "ClassiCube 1.1.0"
#define GAME_APP_NAME "ClassiCube 1.1.1"
#define GAME_APP_TITLE "ClassiCube 1.1.1"
#endif
/* Max number of characters strings can have. */

View File

@ -418,24 +418,29 @@ void Window_SetTitle(const String* title) {
}
void Clipboard_GetText(String* value) {
/* retry up to 50 times */
cc_bool unicode;
HANDLE hGlobal;
LPVOID src;
SIZE_T size;
int i;
/* retry up to 50 times */
for (i = 0; i < 50; i++) {
if (!OpenClipboard(win_handle)) {
Thread_Sleep(10);
continue;
}
cc_bool unicode = true;
HANDLE hGlobal = GetClipboardData(CF_UNICODETEXT);
unicode = true;
hGlobal = GetClipboardData(CF_UNICODETEXT);
if (!hGlobal) {
hGlobal = GetClipboardData(CF_TEXT);
unicode = false;
}
if (!hGlobal) { CloseClipboard(); return; }
LPVOID src = GlobalLock(hGlobal);
SIZE_T size = GlobalSize(hGlobal);
src = GlobalLock(hGlobal);
size = GlobalSize(hGlobal);
/* ignore trailing NULL at end */
/* TODO: Verify it's always there */