WIP: settings, color picker and stuff

This commit is contained in:
2024-01-05 22:19:31 +02:00
parent b8d11050f8
commit bba2f8a189
10 changed files with 561 additions and 68 deletions
+2 -2
View File
@@ -10,7 +10,7 @@
#include "text.h"
#include "zephr.h"
#define FONT_PIXEL_SIZE 128
#define FONT_PIXEL_SIZE 100
#define LINE_HEIGHT 2.0f
Shader font_shader;
@@ -100,7 +100,7 @@ int init_freetype(const char* font_path) {
tex_height = CORE_MAX(tex_height, face->glyph->bitmap.rows);
}
char *pixels = (char *)calloc(tex_width * tex_height, 1);
char *pixels = (char *)malloc(tex_width * tex_height);
for (u32 i = 32; i < 128; i++) {
/* while (glyph_idx) { */