瀏覽代碼

Fixed offset check in GenImageFontAtlas (#1171)

* Fixed offset check in GenImageFontAtlas

* Fixed code formatting to follow raylib notation rules
pull/1172/head
SasLuca 5 年之前
committed by GitHub
父節點
當前提交
8444c3f705
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/text.c

+ 1
- 1
src/text.c 查看文件

@ -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;

Loading…
取消
儲存