mirror of
https://github.com/Ed94/metadesk.git
synced 2026-08-06 15:48:47 +00:00
get stb_sprintf working for MD_String8s
This commit is contained in:
@@ -583,13 +583,11 @@ cl = lg; \
|
||||
MD_String8 str = va_arg(va, MD_String8);
|
||||
|
||||
//- rjf: get string length
|
||||
s = (char *)str.str;
|
||||
sn = (const char *)(str.str + str.size);
|
||||
l = str.size;
|
||||
|
||||
//- rjf: clamp to precision
|
||||
if (l > (stbsp__uint32)pr)
|
||||
{
|
||||
l = pr;
|
||||
}
|
||||
lead[0] = 0;
|
||||
tail[0] = 0;
|
||||
pr = 0;
|
||||
|
||||
Reference in New Issue
Block a user