diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2017-03-11 06:46:27 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2017-03-11 06:47:22 +0300 |
commit | f667593b6a1325c62a89a6ae1ae4718833dca4d0 (patch) | |
tree | e9756de43bed97742a6e2e30da7bdfc656eb9ad6 /source/blender/editors/interface/interface_widgets.c | |
parent | 2d3c44389ab7e129b59d166a56ccdec69efd10a6 (diff) |
Fix text and icon positioning issue on high DPI, after recent changes in 32c5f3d.
Diffstat (limited to 'source/blender/editors/interface/interface_widgets.c')
-rw-r--r-- | source/blender/editors/interface/interface_widgets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c index 6e871b8ec92..76c4eeef0c2 100644 --- a/source/blender/editors/interface/interface_widgets.c +++ b/source/blender/editors/interface/interface_widgets.c @@ -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 */ |