aboutsummaryrefslogtreecommitdiff
path: root/pugl_cairo_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-15 11:53:27 +0200
committerDavid Robillard <d@drobilla.net>2018-09-15 11:53:27 +0200
commit6b488fa9dd17e8e7e4ca9e9a86677d91d049406a (patch)
tree415742d9c7ac624b90a5e99c3cb1b17f79e624e8 /pugl_cairo_test.c
parentbefca854f84b1ebf730dd45b5e63a7928039b32d (diff)
Fix minor clang-tidy warnings
Diffstat (limited to 'pugl_cairo_test.c')
-rw-r--r--pugl_cairo_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pugl_cairo_test.c b/pugl_cairo_test.c
index c04c785..76c3ee7 100644
--- a/pugl_cairo_test.c
+++ b/pugl_cairo_test.c
@@ -85,8 +85,8 @@ buttonDraw(cairo_t* cr, const Button* but)
cairo_set_font_size(cr, 32.0);
cairo_text_extents(cr, but->label, &extents);
cairo_move_to(cr,
- (but->x + but->w / 2) - extents.width / 2,
- (but->y + but->h / 2) + extents.height / 2);
+ (but->x + but->w / 2.0) - extents.width / 2,
+ (but->y + but->h / 2.0) + extents.height / 2);
cairo_set_source_rgba(cr, 0, 0, 0, 1);
cairo_show_text(cr, but->label);
}