[Bf-blender-cvs] [9c6fc9f] master: Fix T37777: layout.column_flow() not working correct with retina / DPI.
Brecht Van Lommel
noreply at git.blender.org
Wed Dec 11 17:07:31 CET 2013
Commit: 9c6fc9f15ede6d62272975cf39318200e8db06a7
Author: Brecht Van Lommel
Date: Wed Dec 11 17:05:17 2013 +0100
http://developer.blender.org/rB9c6fc9f15ede6d62272975cf39318200e8db06a7
Fix T37777: layout.column_flow() not working correct with retina / DPI.
===================================================================
M source/blender/editors/screen/area.c
===================================================================
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index 701abab..f53b26d 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 */
More information about the Bf-blender-cvs
mailing list