fix rect triangle comments (xd)

This commit is contained in:
jacekpoz 2024-08-13 12:02:24 +02:00
parent ca212ac65e
commit c7386ddfbf
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -44,9 +44,9 @@ void rect(const PtkRect *rect) {
PtkPos t1_positions[3]; PtkPos t1_positions[3];
// top left // top left
t1_positions[0] = (PtkPos){ .x = x, .y = y }; t1_positions[0] = (PtkPos){ .x = x, .y = y };
// bottom left
t1_positions[1] = (PtkPos){ .x = x + w, .y = y };
// top right // top right
t1_positions[1] = (PtkPos){ .x = x + w, .y = y };
// bottom left
t1_positions[2] = (PtkPos){ .x = x, .y = y + h }; t1_positions[2] = (PtkPos){ .x = x, .y = y + h };
PtkTriangle *t1 = (PtkTriangle *)ptk_triangle((PtkPos *)t1_positions, rect->color); PtkTriangle *t1 = (PtkTriangle *)ptk_triangle((PtkPos *)t1_positions, rect->color);
t1->type = rect->type; t1->type = rect->type;
@ -54,9 +54,9 @@ void rect(const PtkRect *rect) {
triangle(t1, 0); triangle(t1, 0);
PtkPos t2_positions[3]; PtkPos t2_positions[3];
// bottom left
t2_positions[0] = (PtkPos){ .x = x + w, .y = y };
// top right // top right
t2_positions[0] = (PtkPos){ .x = x + w, .y = y };
// bottom left
t2_positions[1] = (PtkPos){ .x = x, .y = y + h }; t2_positions[1] = (PtkPos){ .x = x, .y = y + h };
// bottom right // bottom right
t2_positions[2] = (PtkPos){ .x = x + w, .y = y + h }; t2_positions[2] = (PtkPos){ .x = x + w, .y = y + h };