Fix text and icon positioning issue on high DPI, after recent changes in 32c5f3d
.
This commit is contained in:
parent
2d3c44389a
commit
f667593b6a
|
@ -1554,7 +1554,7 @@ static void widget_draw_text_icon(uiFontStyle *fstyle, uiWidgetColors *wcol, uiB
|
|||
/* Icons on the left with optional text label on the right */
|
||||
else if (but->flag & UI_HAS_ICON || show_menu_icon) {
|
||||
const BIFIconID icon = (but->flag & UI_HAS_ICON) ? but->icon + but->iconadd : ICON_NONE;
|
||||
const float icon_size = ICON_DEFAULT_WIDTH;
|
||||
const float icon_size = ICON_DEFAULT_WIDTH_SCALE;
|
||||
|
||||
/* menu item - add some more padding so menus don't feel cramped. it must
|
||||
* be part of the button so that this area is still clickable */
|
||||
|
|
Loading…
Reference in New Issue