From 58bd0e53f1172b21f674736276e9c22b0d63f3e6 Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Tue, 4 Mar 2014 14:26:31 +0100 Subject: Fix T38944, Fonts too small in Movie Clip Editor on Retina display. Thanks to Sergey for suggesting this fix. --- source/blender/editors/space_clip/clip_draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/blender/editors/space_clip/clip_draw.c b/source/blender/editors/space_clip/clip_draw.c index d8ccac730c8..c8a49a68290 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) { -- cgit v1.2.3