Просмотр исходного кода

Corrected bug on ImageDrawRectangleLines()

pull/990/head
raysan5 6 лет назад
Родитель
Сommit
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)

Загрузка…
Отмена
Сохранить