diff options
| author | Ray <[email protected]> | 2024-02-04 22:50:54 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2024-02-04 22:50:54 +0100 |
| commit | e9291fa4c77c85e1fe6808289632e5ce4a93eed6 (patch) | |
| tree | 37418085f989e04f56a765e7ba5e9ad414ef1d03 /src/rtext.c | |
| parent | c0c2e28c1ba0018a23a44d01f0ea4f6145ff626c (diff) | |
| download | raylib-e9291fa4c77c85e1fe6808289632e5ce4a93eed6.tar.gz raylib-e9291fa4c77c85e1fe6808289632e5ce4a93eed6.zip | |
Update rtext.c
Diffstat (limited to 'src/rtext.c')
| -rw-r--r-- | src/rtext.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rtext.c b/src/rtext.c index c6187a0a..7a125622 100644 --- a/src/rtext.c +++ b/src/rtext.c @@ -2368,11 +2368,11 @@ static GlyphInfo *LoadFontDataBDF(const unsigned char *fileData, int dataSize, i for (int bitX = 0; bitX < 4; bitX++) { - int pixelX = ((x * 4) + bitX); + int pixelX = ((x*4) + bitX); if (pixelX >= charGlyphInfo->image.width) break; - if ((byte & (8 >> bitX)) > 0) ((unsigned char*)charGlyphInfo->image.data)[(pixelY * charGlyphInfo->image.width) + pixelX] = 255; + if ((byte & (8 >> bitX)) > 0) ((unsigned char *)charGlyphInfo->image.data)[(pixelY*charGlyphInfo->image.width) + pixelX] = 255; } } } @@ -2423,7 +2423,7 @@ static GlyphInfo *LoadFontDataBDF(const unsigned char *fileData, int dataSize, i charGlyphInfo->offsetY = fontBBh - (charBBh + charBByoff0 + fontBByoff0 + fontAscent); charGlyphInfo->advanceX = charDWidthX; - charGlyphInfo->image.data = RL_CALLOC(charBBw * charBBh, 1); + charGlyphInfo->image.data = RL_CALLOC(charBBw*charBBh, 1); charGlyphInfo->image.width = charBBw; charGlyphInfo->image.height = charBBh; charGlyphInfo->image.mipmaps = 1; |
