mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-25 20:49:49 +08:00
Move variable declaration to a more deeply nested block. It is not used outside of it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19937 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
+2
-1
@@ -1509,7 +1509,6 @@ static int ass_render_event(ass_event_t* event, event_images_t* event_images)
|
||||
int i, j;
|
||||
FT_Vector shift;
|
||||
int MarginL, MarginR, MarginV;
|
||||
int max_text_width;
|
||||
int last_break;
|
||||
int alignment, halign, valign;
|
||||
int device_x = 0, device_y = 0;
|
||||
@@ -1642,6 +1641,8 @@ static int ass_render_event(ass_event_t* event, event_images_t* event_images)
|
||||
MarginV = (event->MarginV) ? event->MarginV : render_context.style->MarginV;
|
||||
|
||||
if (render_context.evt_type != EVENT_HSCROLL) {
|
||||
int max_text_width;
|
||||
|
||||
// calculate max length of a line
|
||||
max_text_width = x2scr(frame_context.track->PlayResX - MarginR) - x2scr(MarginL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user