mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 15:33:55 +02:00
a5aec62fc4
this version includes small changes to make it suitable for siril okay op@
16 lines
473 B
Plaintext
16 lines
473 B
Plaintext
Silence warnings by using better functions
|
|
Index: label.c
|
|
--- label.c.orig
|
|
+++ label.c
|
|
@@ -32,8 +32,8 @@ bbox_extents(struct kplotctx *ctx, const char *v,
|
|
cairo_text_extents_t e;
|
|
|
|
cairo_text_extents(ctx->cr, v, &e);
|
|
- *h = abs(e.width * sin(rot)) + abs(e.height * cos(rot));
|
|
- *w = abs(e.width * cos(rot)) + abs(e.height * sin(rot));
|
|
+ *h = fabs(e.width * sin(rot)) + fabs(e.height * cos(rot));
|
|
+ *w = fabs(e.width * cos(rot)) + fabs(e.height * sin(rot));
|
|
}
|
|
|
|
void
|