fix rect triangle comments (xd)
This commit is contained in:
parent
ca212ac65e
commit
c7386ddfbf
1 changed files with 4 additions and 4 deletions
|
@ -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 };
|
||||||
|
|
Loading…
Reference in a new issue