Quellcode durchsuchen

Fixed offset check in GenImageFontAtlas (#1171)

* Fixed offset check in GenImageFontAtlas

* Fixed code formatting to follow raylib notation rules
pull/1172/head
SasLuca vor 5 Jahren
committed von GitHub
Ursprung
Commit
8444c3f705
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden GPG-Schlüssel-ID: 4AEE18F83AFDEB23
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. +1
    -1
      src/text.c

+ 1
- 1
src/text.c Datei anzeigen

@ -652,7 +652,7 @@ Image GenImageFontAtlas(const CharInfo *chars, Rectangle **charRecs, int charsCo
// Move atlas position X for next character drawing
offsetX += (chars[i].image.width + 2*padding);
if (offsetX >= (atlas.width - chars[i].image.width - padding))
if (offsetX >= (atlas.width - chars[i].image.width - mi">2*padding))
{
offsetX = padding;

Laden…
Abbrechen
Speichern