comparison libass/ass_render.c @ 28716:0a8b23440a61

Fix two gcc warnings. Patch by Grigori G (greg chown ath cx).
author eugeni
date Fri, 27 Feb 2009 23:06:43 +0000
parents e758bf5350ee
children 7bbe6626f0e0
comparison
equal deleted inserted replaced
28715:d609e9b8732d 28716:0a8b23440a61
1142 p += 2; 1142 p += 2;
1143 *str = p; 1143 *str = p;
1144 return ' '; 1144 return ' ';
1145 } 1145 }
1146 } 1146 }
1147 chr = utf8_get_char(&p); 1147 chr = utf8_get_char((const char **)&p);
1148 *str = p; 1148 *str = p;
1149 return chr; 1149 return chr;
1150 } 1150 }
1151 1151
1152 static void apply_transition_effects(ass_event_t* event) 1152 static void apply_transition_effects(ass_event_t* event)
2041 2041
2042 if (render_context.have_origin) { 2042 if (render_context.have_origin) {
2043 center.x = x2scr(render_context.org_x); 2043 center.x = x2scr(render_context.org_x);
2044 center.y = y2scr(render_context.org_y); 2044 center.y = y2scr(render_context.org_y);
2045 } else { 2045 } else {
2046 int bx, by; 2046 int bx = 0, by = 0;
2047 get_base_point(bbox, alignment, &bx, &by); 2047 get_base_point(bbox, alignment, &bx, &by);
2048 center.x = device_x + bx; 2048 center.x = device_x + bx;
2049 center.y = device_y + by; 2049 center.y = device_y + by;
2050 } 2050 }
2051 2051