mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +02:00
paintButtons: fix alternative button text size
This commit is contained in:
@@ -139,6 +139,9 @@ int paintButtons( const int &x,
|
|||||||
if (content[i].locale) {
|
if (content[i].locale) {
|
||||||
buttontext[i] = g_Locale->getText(content[i].locale);
|
buttontext[i] = g_Locale->getText(content[i].locale);
|
||||||
//text width
|
//text width
|
||||||
|
if (alt_buttontext != NULL && i == buttontext_id)
|
||||||
|
fwidth[i] = font->getRenderWidth(alt_buttontext, true); //...with an alternate buttontext
|
||||||
|
else
|
||||||
fwidth[i] = font->getRenderWidth(buttontext[i], true);
|
fwidth[i] = font->getRenderWidth(buttontext[i], true);
|
||||||
w_text += fwidth[i];
|
w_text += fwidth[i];
|
||||||
count_labels++;
|
count_labels++;
|
||||||
|
Reference in New Issue
Block a user