diff options
author | Yevgeny Makarov <jenkm> | 2020-02-25 17:06:51 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-02-25 17:13:25 +0300 |
commit | fe3264fafd1c7c15e4c7cfc86d25a6500d01a820 (patch) | |
tree | ba40bbd17e711190031ce6683ebf3cbeccf3e824 /source/blender/windowmanager/intern/wm_files.c | |
parent | b0786d069cee989a924338fd450f7b4d5e7f47ce (diff) |
UI: fix wrong button padding on high DPI displays in a few places
Differential Revision: https://developer.blender.org/D6928
Diffstat (limited to 'source/blender/windowmanager/intern/wm_files.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index eff5464c885..1775d9064d9 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -2808,7 +2808,7 @@ static uiBlock *block_create_autorun_warning(struct bContext *C, void *UNUSED(arg1)) { wmWindowManager *wm = CTX_wm_manager(C); - uiStyle *style = UI_style_get(); + uiStyle *style = UI_style_get_dpi(); uiBlock *block = UI_block_begin(C, ar, "autorun_warning_popup", UI_EMBOSS); UI_block_flag_enable( @@ -3067,6 +3067,7 @@ static uiBlock *block_create__close_file_dialog(struct bContext *C, struct ARegi /* Create dialog */ uiBlock *block = UI_block_begin(C, ar, close_file_dialog_name, UI_EMBOSS); + style = UI_style_get_dpi(); UI_block_flag_enable( block, UI_BLOCK_KEEP_OPEN | UI_BLOCK_LOOP | UI_BLOCK_NO_WIN_CLIP | UI_BLOCK_NUMSELECT); |