UI: Resolve T37917, disable tooltip scaling (zoomout only)
authorCampbell Barton <ideasman42@gmail.com>
Mon, 23 Dec 2013 01:46:50 +0000 (12:46 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 23 Dec 2013 01:46:50 +0000 (12:46 +1100)
source/blender/editors/interface/interface_regions.c

index 5ae708556347bd23ab61ffc4c0b983b6cf20a119..31b44df820040788ecfa80796f855e6fe7cc882e 100644 (file)
@@ -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;