Explorar el Código

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

Closes #4673
pull/4683/head
tea hace 1 año
padre
commit
3720f06eba
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      src/rshapes.c

+ 1
- 1
src/rshapes.c Ver fichero

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

Cargando…
Cancelar
Guardar