mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-10 16:03:15 -04:00
remove debug stuff
This commit is contained in:
parent
1b8b8947b3
commit
cae2f15873
@ -14,6 +14,9 @@
|
||||
#elif defined CC_BUILD_COCOA
|
||||
#define GAME_APP_NAME "ClassiCube 1.2.0 alpha"
|
||||
#define GAME_APP_TITLE "ClassiCube 1.2.0 alpha"
|
||||
#elif defined CC_BUILD_ANDROID
|
||||
#define GAME_APP_NAME "ClassiCube 1.2.0 android alpha"
|
||||
#define GAME_APP_TITLE "ClassiCube 1.2.0 android alpha"
|
||||
#else
|
||||
#define GAME_APP_NAME "ClassiCube 1.2.0"
|
||||
#define GAME_APP_TITLE "ClassiCube 1.2.0"
|
||||
|
26
src/Window.c
26
src/Window.c
@ -3539,33 +3539,7 @@ void Window_Close(void) {
|
||||
UnhookEvents();
|
||||
}
|
||||
|
||||
#include "Chat.h"
|
||||
static void LogStuff(void) {
|
||||
char buffer[256]; cc_string str = String_FromArray(buffer);
|
||||
int width, height;
|
||||
double css_width, css_height;
|
||||
|
||||
width = GetCanvasWidth();
|
||||
height = GetCanvasHeight();
|
||||
String_Format2(&str, "Size: %ix%i", &width, &height);
|
||||
Chat_AddOf(&str, MSG_TYPE_STATUS_1);
|
||||
str.length = 0;
|
||||
|
||||
emscripten_get_element_css_size("#canvas", &css_width, &css_height);
|
||||
width = (int)(css_width * DisplayInfo.DpiX);
|
||||
height = (int)(css_height * DisplayInfo.DpiY);
|
||||
String_Format2(&str, "CSS: %ix%i", &width, &height);
|
||||
Chat_AddOf(&str, MSG_TYPE_STATUS_2);
|
||||
str.length = 0;
|
||||
|
||||
width = GetScreenWidth();
|
||||
height = GetScreenHeight();
|
||||
String_Format2(&str, "Dims: %ix%i", &width, &height);
|
||||
Chat_AddOf(&str, MSG_TYPE_STATUS_3);
|
||||
}
|
||||
|
||||
void Window_ProcessEvents(void) {
|
||||
LogStuff();
|
||||
if (!needResize) return;
|
||||
needResize = false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user