remove some old debug logs

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
This commit is contained in:
Caleb Connolly 2023-07-28 18:04:05 +01:00
parent 080fcf60ca
commit 760ad79c92
No known key found for this signature in database
GPG key ID: 7930459FB9303217

View file

@ -194,9 +194,8 @@ static const char *getTextDimensions(const NSVGimage *font, const char *text, fl
NSVGshape *shape = shapes[i]; NSVGshape *shape = shapes[i];
out_text[j] = text[i]; out_text[j] = text[i];
if (*width > screenWidth * 0.95) { if (*width > screenWidth * 0.95) {
if (!line_has_space)
i--;
if (!line_has_space) { if (!line_has_space) {
i--;
if (i < 1) { if (i < 1) {
fprintf(stderr, fprintf(stderr,
"ERROR: Text is too long to fit on screen!"); "ERROR: Text is too long to fit on screen!");
@ -219,14 +218,12 @@ static const char *getTextDimensions(const NSVGimage *font, const char *text, fl
} }
if (out_text[j] == '\n') { if (out_text[j] == '\n') {
printf("LINE SPLIT, %d %s\n", i, out_text);
line_has_space = false; line_has_space = false;
*height += fontHeight; *height += fontHeight;
maxWidth = *width > maxWidth ? *width : maxWidth; maxWidth = *width > maxWidth ? *width : maxWidth;
*width = 0; *width = 0;
continue; continue;
} else if (text[i] == ' ') { } else if (text[i] == ' ') {
printf("SPACE! %s\n", out_text);
line_has_space = true; line_has_space = true;
} }