From e52de44b51c2bc3b2a85a0b690993079e4e63439 Mon Sep 17 00:00:00 2001 From: vurtun Date: Wed, 10 Jun 2015 13:29:09 +0200 Subject: [PATCH] fixed text button text drawing --- gui.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui.h b/gui.h index 2cc423f..4dd10be 100644 --- a/gui.h +++ b/gui.h @@ -2998,8 +2998,8 @@ gui_button_text(struct gui_command_buffer *o, gui_float x, gui_float y, inner.h = button_h - (2 * b->border); /* draw text inside button */ - t.padding.x = b->padding.x; - t.padding.y = b->padding.y; + t.padding.x = 0; + t.padding.y = 0; t.background = bg_color; t.foreground = font_color; gui_text(o, inner.x, inner.y, inner.w, inner.h, string, gui_strsiz(string),