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];
|
||||
// top left
|
||||
t1_positions[0] = (PtkPos){ .x = x, .y = y };
|
||||
// bottom left
|
||||
t1_positions[1] = (PtkPos){ .x = x + w, .y = y };
|
||||
// top right
|
||||
t1_positions[1] = (PtkPos){ .x = x + w, .y = y };
|
||||
// bottom left
|
||||
t1_positions[2] = (PtkPos){ .x = x, .y = y + h };
|
||||
PtkTriangle *t1 = (PtkTriangle *)ptk_triangle((PtkPos *)t1_positions, rect->color);
|
||||
t1->type = rect->type;
|
||||
|
@ -54,9 +54,9 @@ void rect(const PtkRect *rect) {
|
|||
triangle(t1, 0);
|
||||
|
||||
PtkPos t2_positions[3];
|
||||
// bottom left
|
||||
t2_positions[0] = (PtkPos){ .x = x + w, .y = y };
|
||||
// top right
|
||||
t2_positions[0] = (PtkPos){ .x = x + w, .y = y };
|
||||
// bottom left
|
||||
t2_positions[1] = (PtkPos){ .x = x, .y = y + h };
|
||||
// bottom right
|
||||
t2_positions[2] = (PtkPos){ .x = x + w, .y = y + h };
|
||||
|
|
Loading…
Reference in a new issue