From 5a9a9d113f88ab4e3f9e570397a744760d4520c1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 17 Oct 2012 20:39:51 +0300 Subject: Extend radio button theming. New options: padding - padding from all sides except left imagePadding - padding from left before image imageSize - image size for computation width spacing - space between image and text width = imagePadding + imageSize + spacing + text width + padding height = padding + text height + padding --- src/guichan/widgets/radiobutton.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/guichan') diff --git a/src/guichan/widgets/radiobutton.cpp b/src/guichan/widgets/radiobutton.cpp index 9f19b00a7..8cca3feac 100644 --- a/src/guichan/widgets/radiobutton.cpp +++ b/src/guichan/widgets/radiobutton.cpp @@ -183,9 +183,5 @@ namespace gcn void RadioButton::adjustSize() { - const int height = getFont()->getHeight(); - - setHeight(height); - setWidth(getFont()->getWidth(getCaption()) + height + height / 2); } } -- cgit v1.2.3-60-g2f50