set ellipse rect's type to the ellipse's type

This commit is contained in:
jacekpoz 2024-08-13 02:08:18 +02:00
parent 4872e59e16
commit 2b3f4c58c4
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -73,7 +73,10 @@ void ellipse(PtkEllipse *ellipse) {
.h = ellipse->radii.h * 2.0f, .h = ellipse->radii.h * 2.0f,
}; };
rect((PtkRect *)ptk_rect(top_left, size, ellipse->color)); PtkRect *r = (PtkRect *)ptk_rect(top_left, size, ellipse->color);
r->type = ellipse->type;
rect(r);
} }
void vk_component(PtkHandle component) { void vk_component(PtkHandle component) {