ソースを参照

Fix ImageClearBackground (#1711)

- Dividing by height instead of width results in missing parts of the image.
pull/1716/head
Ergoold 4年前
committed by GitHub
コミット
85ef9d8f2e
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      src/textures.c

+ 1
- 1
src/textures.c ファイルの表示

@ -2347,7 +2347,7 @@ Rectangle GetImageAlphaBorder(Image image, float threshold)
// Clear image background with given color
void ImageClearBackground(Image *dst, Color color)
{
for (int i = 0; i < dst->width*dst->height; ++i) ImageDrawPixel(dst, i%dst->width, i/dst->height, color);
for (int i = 0; i < dst->width*dst->height; ++i) ImageDrawPixel(dst, i%dst->width, i/dst->width, color);
}
// Draw pixel within an image

読み込み中…
キャンセル
保存