UI: Position of Current Frame Indicator Text #119236
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue