aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-11-20 23:11:10 +0100
committerFederico Angelilli <code@fedang.net>2024-11-20 23:11:10 +0100
commitfcd52f6db3dc9092dbd7a502e3e561ad16bf0743 (patch)
tree6f98828f03e6432b7218091712607c134a3bbf57 /src/util.h
parent165c408de117b5f3923b945756e4ebffc5b733d7 (diff)
Fix capsule edge case
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index e40a11a..76c87c0 100644
--- a/src/util.h
+++ b/src/util.h
@@ -85,6 +85,10 @@ void strfree(char **list);
bool iszero(const void *ptr, size_t size);
+// Render a capsule shape. Cannot handle w < 2*r1
+void render_capsule_fast(cairo_t *cr, int x, int y, int w, int r1, int r2);
+
+// Render a capsule shape
void render_capsule(cairo_t *cr, int x, int y, int w, int r1, int r2);
typedef enum {