소스 검색

Fix a dependance of rtexture to rtext (#4171)

pull/4175/head
Julianiolo 10 달 전
committed by GitHub
부모
커밋
aa70d32786
No known key found for this signature in database GPG 키 ID: B5690EEEBB952194
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. +5
    -0
      src/rtextures.c

+ 5
- 0
src/rtextures.c 파일 보기

@ -1213,6 +1213,7 @@ Image GenImageText(int width, int height, const char *text)
{
Image image = { 0 };
#ifdef SUPPORT_MODULE_RTEXT
int textLength = TextLength(text);
int imageViewSize = width*height;
@ -1223,6 +1224,10 @@ 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;
}

불러오는 중...
취소
저장