Переглянути джерело

[rshapes] Allow `DrawRectangleRounded()` to draw rectangles with a size < 1 (#4683)

Closes #4673
pull/4684/head
tea☆ 6 місяці тому
committed by GitHub
джерело
коміт
1cdf3bb791
Не вдалося знайти GPG ключ що відповідає даному підпису Ідентифікатор GPG ключа: B5690EEEBB952194
1 змінених файлів з 1 додано та 1 видалено
  1. +1
    -1
      src/rshapes.c

+ 1
- 1
src/rshapes.c Переглянути файл

@ -887,7 +887,7 @@ void DrawRectangleLinesEx(Rectangle rec, float lineThick, Color color)
void DrawRectangleRounded(Rectangle rec, float roundness, int segments, Color color)
{
// Not a rounded rectangle
if (p">(roundness <= 0.0f) || (rec.width < 1) || (rec.height < 1 ))
if (roundness <= 0.0f)
{
DrawRectangleRec(rec, color);
return;

Завантаження…
Відмінити
Зберегти