mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
menu: fix right offset for very long right texts
Signed-off-by: Thilo Graf <dbt@novatux.de>
Origin commit data
------------------
Commit: c367c80335
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-09-12 (Tue, 12 Sep 2017)
Origin message was:
------------------
- menu: fix right offset for very long right texts
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -256,7 +256,7 @@ void CMenuItem::paintItemCaption(const bool select_mode, const char * right_text
|
||||
}
|
||||
if (*right_text) {
|
||||
stringstartposOption -= (icon_w == 0 ? 0 : icon_w + OFFSET_INNER_MID);
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(stringstartposOption, y+item_height - desc_height, dx- (stringstartposOption- x), right_text, item_color);
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(stringstartposOption, y+item_height - desc_height, dx - stringstartposOption + x - OFFSET_INNER_MID, right_text, item_color);
|
||||
}
|
||||
}
|
||||
if (desc_text && *desc_text)
|
||||
|
Reference in New Issue
Block a user