This commit is contained in:
Harrison Lambeth 2025-01-08 23:34:44 +00:00 committed by GitHub
commit fa07cda7ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 605 additions and 485 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

1086
clay.h

File diff suppressed because it is too large Load Diff

View File

@ -208,10 +208,10 @@ void HandleClayErrors(Clay_ErrorData errorData) {
printf("%s", errorData.errorText.chars);
if (errorData.errorType == CLAY_ERROR_TYPE_ELEMENTS_CAPACITY_EXCEEDED) {
reinitializeClay = true;
Clay_SetMaxElementCount(Clay__maxElementCount * 2);
Clay_SetMaxElementCount(Clay_GetMaxElementCount() * 2);
} else if (errorData.errorType == CLAY_ERROR_TYPE_TEXT_MEASUREMENT_CAPACITY_EXCEEDED) {
reinitializeClay = true;
Clay_SetMaxMeasureTextCacheWordCount(Clay__maxMeasureTextCacheWordCount * 2);
Clay_SetMaxMeasureTextCacheWordCount(Clay_GetMaxMeasureTextCacheWordCount() * 2);
}
}