fix core text and map ownership

This commit is contained in:
2026-08-11 19:32:58 +09:00
parent b63122dd14
commit e70278a3d2
6 changed files with 99 additions and 31 deletions

4
dat.h
View File

@@ -19,6 +19,8 @@ enum
Fontsz = 32,
Fontbase = 4,
Nglyphs = 0x20000,
Maxrunes = 64,
Maxutf = Maxrunes * UTFmax + 1,
};
enum
@@ -37,7 +39,7 @@ enum
typedef struct Str Str;
struct Str
{
Rune r[64];
Rune r[Maxrunes];
int n;
};