Selaa lähdekoodia

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

Closes #4673
pull/4684/head
tea☆ 5 päivää sitten
committed by GitHub
vanhempi
commit
1cdf3bb791
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      src/rshapes.c

+ 1
- 1
src/rshapes.c Näytä tiedosto

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

Ladataan…
Peruuta
Tallenna