summaryrefslogtreecommitdiffhomepage
path: root/src/rtextures.c
diff options
context:
space:
mode:
authorRay <[email protected]>2023-04-22 21:17:53 +0200
committerRay <[email protected]>2023-04-22 21:17:53 +0200
commit838fc7e3033945a5df68a4e360405dc96e910987 (patch)
treeed5c787e50b4227c9e2f24b31165af2ddf6c6c3c /src/rtextures.c
parent05af08080e49fdcdfd603e11c0ddd7d80f0b63ae (diff)
downloadraylib-838fc7e3033945a5df68a4e360405dc96e910987.tar.gz
raylib-838fc7e3033945a5df68a4e360405dc96e910987.zip
REVIEWED: Some old TODOs
Diffstat (limited to 'src/rtextures.c')
-rw-r--r--src/rtextures.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rtextures.c b/src/rtextures.c
index 20244d91..102e244b 100644
--- a/src/rtextures.c
+++ b/src/rtextures.c
@@ -326,8 +326,6 @@ Image LoadImageAnim(const char *fileName, int *frames)
frameCount = 1;
}
- // TODO: Support APNG animated images
-
*frames = frameCount;
return image;
}
@@ -1252,6 +1250,7 @@ Image ImageText(const char *text, int fontSize, Color color)
}
// Create an image from text (custom sprite font)
+// WARNING: Module required: rtext
Image ImageTextEx(Font font, const char *text, float fontSize, float spacing, Color tint)
{
Image imText = { 0 };
@@ -1305,7 +1304,6 @@ Image ImageTextEx(Font font, const char *text, float fontSize, float spacing, Co
// Using nearest-neighbor scaling algorithm for default font
// TODO: Allow defining the preferred scaling mechanism externally
- // WARNING: Module required: rtext
if (font.texture.id == GetFontDefault().texture.id) ImageResizeNN(&imText, (int)(imSize.x*scaleFactor), (int)(imSize.y*scaleFactor));
else ImageResize(&imText, (int)(imSize.x*scaleFactor), (int)(imSize.y*scaleFactor));
}