Commit: 58bd0e53f1172b21f674736276e9c22b0d63f3e6
Author: Thomas Dinges
Date:   Tue Mar 4 14:26:31 2014 +0100
https://developer.blender.org/rB58bd0e53f1172b21f674736276e9c22b0d63f3e6

Fix T38944, Fonts too small in Movie Clip Editor on Retina display.

Thanks to Sergey for suggesting this fix.

===================================================================

M       source/blender/editors/space_clip/clip_draw.c

===================================================================

diff --git a/source/blender/editors/space_clip/clip_draw.c 
b/source/blender/editors/space_clip/clip_draw.c
index d8ccac7..c8a49a6 100644
--- a/source/blender/editors/space_clip/clip_draw.c
+++ b/source/blender/editors/space_clip/clip_draw.c
@@ -84,7 +84,7 @@ void clip_draw_curfra_label(const int framenr, const float x, 
const float y)
        float font_dims[2] = {0.0f, 0.0f};
 
        /* frame number */
-       BLF_size(fontid, 11.0f, U.dpi);
+       BLF_size(fontid, 11.0f * U.pixelsize, U.dpi);
        BLI_snprintf(numstr, sizeof(numstr), "%d", framenr);
 
        BLF_width_and_height(fontid, numstr, sizeof(numstr), &font_dims[0], 
&font_dims[1]);
@@ -940,7 +940,7 @@ static void draw_marker_texts(SpaceClip *sc, 
MovieTrackingTrack *track, MovieTra
        if (!TRACK_VIEW_SELECTED(sc, track))
                return;
 
-       BLF_size(fontid, 11.0f, U.dpi);
+       BLF_size(fontid, 11.0f * U.pixelsize, U.dpi);
        fontsize = BLF_height_max(fontid);
 
        if (marker->flag & MARKER_DISABLED) {

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to