UI: Position of Current Frame Indicator Text #119236

Merged
Harley Acheson merged 1 commits from Harley/blender:FrameIndicator into main 2024-03-09 03:25:12 +01:00
1 changed files with 5 additions and 5 deletions

View File

@ -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,