Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2013-04-18 12:51:07 +0400
committerTon Roosendaal <ton@blender.org>2013-04-18 12:51:07 +0400
commit093f95afaa4a08d2cf194b88803a35ef16cfec58 (patch)
tree40d7dcdcc13f5c64fa479015238700c3aa40baca /source/blender/editors/interface/interface_style.c
parent8a06acfd7af8800f274e1c4712de1d129ef63e58 (diff)
Bug fix #34868
Pulldown menus with long shortcut text labels got clipped badly occasionally. Made the offset follow DPI better.
Diffstat (limited to 'source/blender/editors/interface/interface_style.c')
-rw-r--r--source/blender/editors/interface/interface_style.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_style.c b/source/blender/editors/interface/interface_style.c
index dd4886a7243..63577740c01 100644
--- a/source/blender/editors/interface/interface_style.c
+++ b/source/blender/editors/interface/interface_style.c
@@ -162,7 +162,7 @@ void uiStyleFontDrawExt(uiFontStyle *fs, const rcti *rect, const char *str,
}
}
else if (fs->align == UI_STYLE_TEXT_RIGHT) {
- xofs = BLI_rcti_size_x(rect) - BLF_width(fs->uifont_id, str) - 1;
+ xofs = BLI_rcti_size_x(rect) - BLF_width(fs->uifont_id, str) - 0.1f * U.widget_unit;
}
/* clip is very strict, so we give it some space */