diff --git a/src/ptk.c b/src/ptk.c index 912531d..b9c64cc 100644 --- a/src/ptk.c +++ b/src/ptk.c @@ -141,7 +141,7 @@ PtkHandle ptk_rect(PtkPos top_left, PtkSize size, PtkColor color) { } PtkHandle ptk_square(PtkPos top_left, float size, PtkColor color) { - return ptk_rect(top_left, (PtkSize){ .w = size, .h = size}, color); + return ptk_rect(top_left, (PtkSize){ .w = size, .h = size }, color); } PtkHandle ptk_ellipse(PtkPos center, PtkSize radii, PtkColor color) { @@ -155,7 +155,7 @@ PtkHandle ptk_ellipse(PtkPos center, PtkSize radii, PtkColor color) { } PtkHandle ptk_circle(PtkPos center, float radius, PtkColor color) { - return ptk_ellipse(center, (PtkSize){ .w = radius, .h = radius}, color); + return ptk_ellipse(center, (PtkSize){ .w = radius, .h = radius }, color); } void init_components(PtkHandle root) { diff --git a/src/ptk_vk/components.c b/src/ptk_vk/components.c index 11fc114..acf66fb 100644 --- a/src/ptk_vk/components.c +++ b/src/ptk_vk/components.c @@ -76,8 +76,8 @@ void vk_ellipse(PtkEllipse *ellipse) { PTK_LIST_ADD(PtkHandle, m_components, ellipse); PtkPos top_left = { - .x = ellipse->center.x - ellipse->radii.y, - .y = ellipse->center.x - ellipse->radii.y, + .x = ellipse->center.x - ellipse->radii.x, + .y = ellipse->center.y - ellipse->radii.y, }; PtkSize size = {