aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index 580c360..ca848ec 100644
--- a/src/util.c
+++ b/src/util.c
@@ -217,9 +217,9 @@ bool iszero(const void *ptr, size_t size)
void render_triangle(cairo_t *cr, int x, int y, int w, int h)
{
cairo_new_sub_path(cr);
- cairo_line_to(cr, x, y);
cairo_line_to(cr, x, y + h);
- cairo_line_to(cr, x + w, y + h / 2);
+ cairo_line_to(cr, x + w, y + h);
+ cairo_line_to(cr, x + w / 2, y);
cairo_close_path(cr);
}