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

Thanks to Sergey for suggesting this fix.
This commit is contained in:
Thomas Dinges 2014-03-04 14:26:31 +01:00
parent c436c78de1
commit 58bd0e53f1
Notes: blender-bot 2023-02-14 11:05:02 +01:00
Referenced by issue #38944, OSX Retina: Movieclip Editor - Font extremely small
1 changed files with 2 additions and 2 deletions

View File

@ -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) {