Pulldown menus with long shortcut text labels got clipped badly occasionally.
Made the offset follow DPI better.
This commit is contained in:
2013-04-18 08:51:07 +00:00
parent 8a06acfd7a
commit 093f95afaa
2 changed files with 2 additions and 2 deletions

View File

@@ -1265,7 +1265,7 @@ static void widget_draw_text(uiFontStyle *fstyle, uiWidgetColors *wcol, uiBut *b
/* part text right aligned */
if (cpoin) {
fstyle->align = UI_STYLE_TEXT_RIGHT;
rect->xmax -= ui_but_draw_menu_icon(but) ? UI_DPI_ICON_SIZE : 5;
rect->xmax -= ui_but_draw_menu_icon(but) ? UI_DPI_ICON_SIZE : 0.25f * U.widget_unit;
uiStyleFontDraw(fstyle, rect, cpoin + 1);
*cpoin = '|';
}