[Bf-blender-cvs] [7294c54] master: UI: Resolve T37917, disable tooltip scaling (zoomout only)
Campbell Barton
noreply at git.blender.org
Mon Dec 23 02:48:09 CET 2013
Commit: 7294c54db072c17b2437d59937848a2c1a7c8001
Author: Campbell Barton
Date: Mon Dec 23 12:46:50 2013 +1100
http://developer.blender.org/rB7294c54db072c17b2437d59937848a2c1a7c8001
UI: Resolve T37917, disable tooltip scaling (zoomout only)
===================================================================
M source/blender/editors/interface/interface_regions.c
===================================================================
diff --git a/source/blender/editors/interface/interface_regions.c b/source/blender/editors/interface/interface_regions.c
index 5ae7085..31b44df 100644
--- a/source/blender/editors/interface/interface_regions.c
+++ b/source/blender/editors/interface/interface_regions.c
@@ -430,7 +430,9 @@ ARegion *ui_tooltip_create(bContext *C, ARegion *butregion, uiBut *but)
uiTooltipData *data;
/* IDProperty *prop;*/
char buf[512];
- float fonth, fontw, aspect = but->block->aspect;
+ /* aspect values that shrink text are likely unreadable */
+ const float aspect = min_ff(1.0f, but->block->aspect);
+ float fonth, fontw;
int winx /*, winy */, ofsx, ofsy, w, h, a;
rctf rect_fl;
rcti rect_i;
More information about the Bf-blender-cvs
mailing list