summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authornoshbar <[email protected]>2018-10-10 22:28:17 +0200
committernoshbar <[email protected]>2018-10-10 22:28:17 +0200
commitccaf462cbf4d56886372b720238ad8aa9718ad06 (patch)
treee68a86a321bcfc9ce89bef84d8313bd60e90537c /src/raylib.h
parentf238b9ea3c6b2b380a07d37ebe82d7fcde4a1ce1 (diff)
downloadraylib-ccaf462cbf4d56886372b720238ad8aa9718ad06.tar.gz
raylib-ccaf462cbf4d56886372b720238ad8aa9718ad06.zip
GenImageFontAtlas prototype in raylib.h is incorrect.
The prototype of GenImageFontAtlas() in the main raylib.h header has a set of swapped parameter names. Going through the usage of the function within raylib itself, it appears as if the correct order is: 1) charsCount 2) fontSize However, it's exposed to the world as the other way around, which may cause some major confusion.
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/raylib.h b/src/raylib.h
index 3bd16f00..9d870255 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -1075,7 +1075,7 @@ RLAPI Font GetFontDefault(void);
RLAPI Font LoadFont(const char *fileName); // Load font from file into GPU memory (VRAM)
RLAPI Font LoadFontEx(const char *fileName, int fontSize, int charsCount, int *fontChars); // Load font from file with extended parameters
RLAPI CharInfo *LoadFontData(const char *fileName, int fontSize, int *fontChars, int charsCount, int type); // Load font data for further use
-RLAPI Image GenImageFontAtlas(CharInfo *chars, int fontSize, int charsCount, int padding, int packMethod); // Generate image font atlas using chars info
+RLAPI Image GenImageFontAtlas(CharInfo *chars, int charsCount, int fontSize, int padding, int packMethod); // Generate image font atlas using chars info
RLAPI void UnloadFont(Font font); // Unload Font from GPU memory (VRAM)
// Text drawing functions