Use Lua string length instead of relying on strlen (#1262)
This allows us to render `NULL` byte sequences and not truncate strings that contain them.
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@
|
||||
void rencache_show_debug(bool enable);
|
||||
void rencache_set_clip_rect(RenRect rect);
|
||||
void rencache_draw_rect(RenRect rect, RenColor color);
|
||||
float rencache_draw_text(RenFont **font, const char *text, float x, int y, RenColor color);
|
||||
float rencache_draw_text(RenFont **font, const char *text, size_t len, float x, int y, RenColor color);
|
||||
void rencache_invalidate(void);
|
||||
void rencache_begin_frame();
|
||||
void rencache_end_frame();
|
||||
|
||||
Reference in New Issue
Block a user