comparison libvo/vo_svga.c @ 1501:d40f2b686846

changes according to -utf8 option, draw_osd() function added
author atlka
date Mon, 13 Aug 2001 11:08:18 +0000
parents bf2c01c5e9dc
children d3364cc1f792
comparison
equal deleted inserted replaced
1500:526047bdda07 1501:d40f2b686846
507 gl_putbox((int)(x * scaling) + x_pos, (int)(y * scaling) + y_pos, sw, sh, src); 507 gl_putbox((int)(x * scaling) + x_pos, (int)(y * scaling) + y_pos, sw, sh, src);
508 508
509 return (0); 509 return (0);
510 } 510 }
511 511
512 static void flip_page(void) { 512 static void draw_osd(void)
513 {
513 if (y_pos) { 514 if (y_pos) {
514 gl_fillbox(0, 0, WIDTH, y_pos, 0); 515 gl_fillbox(0, 0, WIDTH, y_pos, 0);
515 gl_fillbox(0, HEIGHT - y_pos, WIDTH, y_pos, 0); 516 gl_fillbox(0, HEIGHT - y_pos, WIDTH, y_pos, 0);
516 } 517 }
517 if (x_pos) { 518 if (x_pos) {
518 gl_fillbox(0, 0, x_pos, HEIGHT, 0); 519 gl_fillbox(0, 0, x_pos, HEIGHT, 0);
519 gl_fillbox(WIDTH - x_pos, 0, x_pos, HEIGHT, 0); 520 gl_fillbox(WIDTH - x_pos, 0, x_pos, HEIGHT, 0);
520 } 521 }
521 522
522 vo_draw_text(WIDTH, HEIGHT, draw_alpha); 523 vo_draw_text(WIDTH, HEIGHT, draw_alpha);
524 }
525
526 static void flip_page(void) {
523 gl_copyscreen(screen); 527 gl_copyscreen(screen);
524 } 528 }
525 529
526 static void check_events(void) { 530 static void check_events(void) {
527 } 531 }
536 free(bppbuf); 540 free(bppbuf);
537 if (scalebuf != NULL) 541 if (scalebuf != NULL)
538 free(scalebuf); 542 free(scalebuf);
539 if (yuvbuf != NULL) 543 if (yuvbuf != NULL)
540 free(yuvbuf); 544 free(yuvbuf);
541 if (modelist != NULL) { 545 while (modelist != NULL) {
542 while (modelist->next != NULL) { 546 list=modelist;
543 list = modelist; 547 modelist=modelist->next;
544 while (list->next != NULL) 548 free(list);
545 list = list->next; 549 }
546 free(list); 550 }
547 }
548 free(modelist);
549 }
550 }