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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2013-12-11 20:05:17 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2013-12-11 20:06:49 +0400
commit9c6fc9f15ede6d62272975cf39318200e8db06a7 (patch)
treed69fecd61cc265a4b381884764f8a332ef53a75d /source/blender/editors/screen/area.c
parent09b859d03f0ee138c4273ef8460e91d9888387a1 (diff)
Fix T37777: layout.column_flow() not working correct with retina / DPI.
Diffstat (limited to 'source/blender/editors/screen/area.c')
-rw-r--r--source/blender/editors/screen/area.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index 701abab804f..f53b26df22c 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -1619,11 +1619,11 @@ void ED_region_panels(const bContext *C, ARegion *ar, int vertical, const char *
if (vertical) {
w = BLI_rctf_size_x(&v2d->cur);
- em = (ar->type->prefsizex) ? UI_UNIT_Y / 2 : UI_UNIT_Y;
+ em = (ar->type->prefsizex) ? 10 : 20; /* works out to 10*UI_UNIT_X or 20*UI_UNIT_X */
}
else {
w = UI_PANEL_WIDTH;
- em = (ar->type->prefsizex) ? UI_UNIT_Y / 2 : UI_UNIT_Y;
+ em = (ar->type->prefsizex) ? 10 : 20;
}
/* create panels */