aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-11-22 12:38:05 +0100
committerFederico Angelilli <code@fedang.net>2024-11-22 12:38:05 +0100
commit10d61d0a765ff3a55aab32e4d28e5b7298d9e89c (patch)
tree986e7ac9ad307819971beb0717338244af4416f4 /src/util.c
parent713084a48649a7aa0c40ea6d6163f0def3dcd82c (diff)
Update slider knob
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);
}