diff options
| author | DarkAssassin23 <[email protected]> | 2024-05-29 11:22:59 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-29 17:22:59 +0200 |
| commit | 2804e758694390d00a0784ebe761531f7021bfc9 (patch) | |
| tree | 0136a7f8e87055d794e4dc9645c9fe4e3292b63f /src | |
| parent | 2e38069475d78c75580e95c23c01216dda185ee4 (diff) | |
| download | raylib-2804e758694390d00a0784ebe761531f7021bfc9.tar.gz raylib-2804e758694390d00a0784ebe761531f7021bfc9.zip | |
[rtext] Added cast to ExportFontAsCode output to fix C++ compiler errors (#4013)
Diffstat (limited to 'src')
| -rw-r--r-- | src/rtext.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rtext.c b/src/rtext.c index 1ddb6250..5ebabc66 100644 --- a/src/rtext.c +++ b/src/rtext.c @@ -1093,8 +1093,8 @@ bool ExportFontAsCode(Font font, const char *fileName) #else byteCount += sprintf(txtData + byteCount, " // Assign glyph recs and info data directly\n"); byteCount += sprintf(txtData + byteCount, " // WARNING: This font data must not be unloaded\n"); - byteCount += sprintf(txtData + byteCount, " font.recs = fontRecs_%s;\n", fileNamePascal); - byteCount += sprintf(txtData + byteCount, " font.glyphs = fontGlyphs_%s;\n\n", fileNamePascal); + byteCount += sprintf(txtData + byteCount, " font.recs = (Rectangle *)fontRecs_%s;\n", fileNamePascal); + byteCount += sprintf(txtData + byteCount, " font.glyphs = (GlyphInfo *)fontGlyphs_%s;\n\n", fileNamePascal); #endif byteCount += sprintf(txtData + byteCount, " return font;\n"); byteCount += sprintf(txtData + byteCount, "}\n"); |
