From 818b086f08b81f58bdb2119fb080a381c9e5f990 Mon Sep 17 00:00:00 2001 From: tobid7 Date: Sun, 29 Mar 2026 01:08:02 +0100 Subject: [PATCH] Fixing riunded rects --- source/lithium/drawlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lithium/drawlist.cpp b/source/lithium/drawlist.cpp index 5362fff..4417eaf 100644 --- a/source/lithium/drawlist.cpp +++ b/source/lithium/drawlist.cpp @@ -75,7 +75,7 @@ PD_API void Drawlist::PathRect(const fvec2& tl, const fvec2& br, float r) { PathAdd(br); PathAdd(vec2(tl.x, br.y)); } else { - float r = 0.f; + float r = std::numeric_limits::max(); r = std::min({r, (br.x - tl.x) * 0.5f, (br.y - tl.y) * 0.5f}); /** Calculate Optimal segment count automatically */ float corner = M_PI * 0.5f;