remove debug stuff

This commit is contained in:
UnknownShadow200 2020-10-31 13:08:04 +11:00
parent 1b8b8947b3
commit cae2f15873
2 changed files with 3 additions and 26 deletions

View File

@ -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"

View File

@ -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;