浏览代码

Reviewed and reverted unneeded module check, `rtextures` should not depend on `rtext`

pull/4430/head
Ray 1年前
父节点
当前提交
708089f560
共有 1 个文件被更改,包括 1 次插入6 次删除
  1. +1
    -6
      src/rtextures.c

+ 1
- 6
src/rtextures.c 查看文件

@ -1111,8 +1111,7 @@ Image GenImageText(int width, int height, const char *text)
{
Image image = { 0 };
#if defined(SUPPORT_MODULE_RTEXT)
int textLength = TextLength(text);
int textLength = (int)strlen(text);
int imageViewSize = width*height;
image.width = width;
@ -1122,10 +1121,6 @@ Image GenImageText(int width, int height, const char *text)
image.mipmaps = 1;
memcpy(image.data, text, (textLength > imageViewSize)? imageViewSize : textLength);
#else
TRACELOG(LOG_WARNING, "IMAGE: GenImageText() requires module: rtext");
image = GenImageColor(width, height, BLACK); // Generating placeholder black image rectangle
#endif
return image;
}

正在加载...
取消
保存