Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2014-03-04 17:26:31 +0400
committerThomas Dinges <blender@dingto.org>2014-03-04 17:27:56 +0400
commit58bd0e53f1172b21f674736276e9c22b0d63f3e6 (patch)
treebd452559c49c2e5642cae766366b08e257077741 /source/blender
parentc436c78de1d2f6fcac46e69c5c81ca2af5f839e5 (diff)
Fix T38944, Fonts too small in Movie Clip Editor on Retina display.
Thanks to Sergey for suggesting this fix.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/space_clip/clip_draw.c4
1 files changed, 2 insertions, 2 deletions
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) {