瀏覽代碼

Corrected bug on ImageDrawRectangleLines()

pull/990/head
raysan5 5 年之前
父節點
當前提交
68dcb55349
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/textures.c

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

@ -2002,7 +2002,7 @@ void ImageDrawRectangleLines(Image *dst, Rectangle rec, int thick, Color color)
ImageDrawRectangle(dst, (Rectangle){ rec.x, rec.y, rec.width, thick }, color);
ImageDrawRectangle(dst, (Rectangle){ rec.x, rec.y + thick, thick, rec.height - thick*2 }, color);
ImageDrawRectangle(dst, (Rectangle){ rec.x + rec.width - thick, rec.y + thick, thick, rec.height - thick*2 }, color);
ImageDrawRectangle(dst, (Rectangle){ rec.x, rec.height - thick, rec.width, thick }, color);
ImageDrawRectangle(dst, (Rectangle){ rec.x, rec.y + rec.height - thick, rec.width, thick }, color);
}
// Draw text (default font) within an image (destination)

Loading…
取消
儲存