UI: Position of Current Frame Indicator Text
Improve the positioning of the text on the current frame indicator by taking the Text Style size into consideration. Pull Request: https://projects.blender.org/blender/blender/pulls/119236
This commit is contained in:
committed by
Harley Acheson
parent
733f02407d
commit
23aaf88233
@@ -132,11 +132,11 @@ static void draw_current_frame(const Scene *scene,
|
||||
|
||||
uchar text_color[4];
|
||||
UI_GetThemeColor4ubv(TH_HEADER_TEXT_HI, text_color);
|
||||
UI_fontstyle_draw_simple(fstyle,
|
||||
frame_x - text_width / 2 + U.pixelsize / 2,
|
||||
get_centered_text_y(scrub_region_rect),
|
||||
frame_str,
|
||||
text_color);
|
||||
|
||||
const int y = BLI_rcti_cent_y(scrub_region_rect) - int((fstyle->points * UI_SCALE_FAC * 0.35f));
|
||||
|
||||
UI_fontstyle_draw_simple(
|
||||
+fstyle, frame_x - text_width / 2 + U.pixelsize / 2, y, frame_str, text_color);
|
||||
}
|
||||
|
||||
void ED_time_scrub_draw_current_frame(const ARegion *region,
|
||||
|
||||
Reference in New Issue
Block a user