comparison libvo/vo_gl.c @ 28255:aeefca2deed3

Change vo_draw_text to a vo_draw_text_ext function which draws DVD navigation highlights at the correct position with the high-resolution OSD of -vo gl.
author reimar
date Sat, 10 Jan 2009 13:47:41 +0000
parents 641020dbb89c
children 395034c15a4b
comparison
equal deleted inserted replaced
28254:3dc0bef87c35 28255:aeefca2deed3
610 if (vo_osd_changed(0)) { 610 if (vo_osd_changed(0)) {
611 int osd_h, osd_w; 611 int osd_h, osd_w;
612 clearOSD(); 612 clearOSD();
613 osd_w = scaled_osd ? image_width : vo_dwidth; 613 osd_w = scaled_osd ? image_width : vo_dwidth;
614 osd_h = scaled_osd ? image_height : vo_dheight; 614 osd_h = scaled_osd ? image_height : vo_dheight;
615 vo_draw_text(osd_w, osd_h, create_osd_texture); 615 vo_draw_text_ext(osd_w, osd_h, ass_border_x, ass_border_y, ass_border_x, ass_border_y,
616 image_width, image_height, create_osd_texture);
616 } 617 }
617 if (vo_doublebuffering) do_render_osd(); 618 if (vo_doublebuffering) do_render_osd();
618 } 619 }
619 620
620 static void do_render(void) { 621 static void do_render(void) {