Fix UI glitches drawing text at different sizes
Font height was ignoring DPI in some cases (camera-name & eyedropper).
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user