From 6b488fa9dd17e8e7e4ca9e9a86677d91d049406a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 15 Sep 2018 11:53:27 +0200 Subject: Fix minor clang-tidy warnings --- pugl_cairo_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pugl_cairo_test.c') 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); } -- cgit v1.2.1