Ver código fonte

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

Closes #4673
pull/4684/head
tea☆ 6 meses atrás
committed by GitHub
pai
commit
1cdf3bb791
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: B5690EEEBB952194
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      src/rshapes.c

+ 1
- 1
src/rshapes.c Ver arquivo

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

Carregando…
Cancelar
Salvar