Fix UI glitches drawing text at different sizes

Font height was ignoring DPI in some cases (camera-name & eyedropper).
This commit is contained in:
2015-01-20 15:48:40 +11:00
parent 09eec627ed
commit 289960787e
5 changed files with 73 additions and 27 deletions

View File

@@ -981,8 +981,13 @@ void UI_fontstyle_draw_ex(
void UI_fontstyle_draw(const struct uiFontStyle *fs, const struct rcti *rect, const char *str);
void UI_fontstyle_draw_rotated(const struct uiFontStyle *fs, const struct rcti *rect, const char *str);
void UI_fontstyle_draw_simple(const struct uiFontStyle *fs, float x, float y, const char *str);
void UI_fontstyle_draw_simple_backdrop(
const uiFontStyle *fs, float x, float y, const char *str,
const unsigned char fg[4], const unsigned char bg[4]);
int UI_fontstyle_string_width(const struct uiFontStyle *fs, const char *str);
int UI_fontstyle_height_max(const struct uiFontStyle *fs);
void UI_draw_icon_tri(float x, float y, char dir);
uiStyle *UI_style_get(void); /* use for fonts etc */