Files
espie a5aec62fc4 kplot is a small graphics plotting library written by kristaps
this version includes small changes to make it suitable for siril

okay op@
2022-08-23 12:14:41 +00:00

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