mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-12 00:56:40 -04:00
one less incompatibility with c89
This commit is contained in:
parent
6b8a9cc1e3
commit
18dcbd710f
@ -205,13 +205,11 @@ void Platform_Log(const char* msg, int len) {
|
||||
WriteFile(conHandle, msg, len, &wrote, NULL);
|
||||
WriteFile(conHandle, "\n", 1, &wrote, NULL);
|
||||
}
|
||||
|
||||
if (!hasDebugger) return;
|
||||
|
||||
len = min(len, 2048);
|
||||
Mem_Copy(tmp, msg, len);
|
||||
tmp[len] = '\0';
|
||||
Mem_Copy(tmp, msg, len); tmp[len] = '\0';
|
||||
|
||||
/* TODO: This reads past the end of the buffer */
|
||||
OutputDebugStringA(tmp);
|
||||
OutputDebugStringA("\n");
|
||||
}
|
||||
@ -263,8 +261,7 @@ void Platform_Log(const char* msg, int len) {
|
||||
char tmp[2048 + 1];
|
||||
len = min(len, 2048);
|
||||
|
||||
Mem_Copy(tmp, msg, len);
|
||||
tmp[len] = '\0';
|
||||
Mem_Copy(tmp, msg, len); tmp[len] = '\0';
|
||||
__android_log_write(ANDROID_LOG_DEBUG, "ClassiCube", tmp);
|
||||
}
|
||||
#else
|
||||
|
@ -1028,10 +1028,11 @@ static void ChatScreen_BuildMesh(void* screen) { }
|
||||
|
||||
static void ChatScreen_Layout(void* screen) {
|
||||
struct ChatScreen* s = (struct ChatScreen*)screen;
|
||||
int yOffset;
|
||||
/* See comment in ChatScreen_UpdateChatYOffsets */
|
||||
HUDScreen_Layout(Gui_HUD);
|
||||
|
||||
int yOffset = Gui_HUD->hotbar.height + 15; /* TODO: This should be DPI scaled?? */
|
||||
yOffset = Gui_HUD->hotbar.height + 15; /* TODO: This should be DPI scaled?? */
|
||||
if (ChatScreen_ChatUpdateFont(s)) ChatScreen_Redraw(s);
|
||||
|
||||
s->paddingX = Display_ScaleX(5);
|
||||
|
Loading…
x
Reference in New Issue
Block a user