History

osd_libass: rename marker size variable

The size won't be dent anymore once other marker styles are added.

nanahi committed 2 years ago

Commit 085a8161 parent 9f6cca61 file · +8 −8Browse files

Unified · Split

sub/osd_libass.c+8−8
@@ -471,16 +471,16 @@ static void update_progbar(struct osd_state *osd, struct osd_object *obj) · 470 unmodified lines
471471 // chapter marks
472472 for (int n = 0; n < obj->progbar_state.num_stops; n++) {
473473 float s = obj->progbar_state.stops[n] * width;
474− float dent = MPMAX(border * 1.3, 1.6);
474+ float size = MPMAX(border * 1.3, 1.6);
475475
476− if (s > dent && s < width - dent) {
477− ass_draw_move_to(d, s + dent, 0);
478− ass_draw_line_to(d, s, dent);
479− ass_draw_line_to(d, s - dent, 0);
476+ if (s > size && s < width - size) {
477+ ass_draw_move_to(d, s + size, 0);
478+ ass_draw_line_to(d, s, size);
479+ ass_draw_line_to(d, s - size, 0);
480480
481− ass_draw_move_to(d, s - dent, height);
482− ass_draw_line_to(d, s, height - dent);
483− ass_draw_line_to(d, s + dent, height);
481+ ass_draw_move_to(d, s - size, height);
482+ ass_draw_line_to(d, s, height - size);
483+ ass_draw_line_to(d, s + size, height);
484484 }
485485 }
486486

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t