diff 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
line wrap: on
line diff
--- a/libvo/vo_svga.c	Mon Aug 13 10:38:01 2001 +0000
+++ b/libvo/vo_svga.c	Mon Aug 13 11:08:18 2001 +0000
@@ -509,7 +509,8 @@
   return (0);
 }
 
-static void flip_page(void) {
+static void draw_osd(void)
+{
   if (y_pos) {
     gl_fillbox(0, 0, WIDTH, y_pos, 0);
     gl_fillbox(0, HEIGHT - y_pos, WIDTH, y_pos, 0);
@@ -520,6 +521,9 @@
   }
 
   vo_draw_text(WIDTH, HEIGHT, draw_alpha);
+}
+
+static void flip_page(void) {
   gl_copyscreen(screen);
 }
 
@@ -538,13 +542,9 @@
     free(scalebuf);
   if (yuvbuf != NULL)
     free(yuvbuf);
-  if (modelist != NULL) {
-    while (modelist->next != NULL) {
-      list = modelist;
-      while (list->next != NULL)
-        list = list->next;
-      free(list);
-    }
-    free(modelist);
+  while (modelist != NULL) {
+       list=modelist;
+       modelist=modelist->next;
+       free(list);
   }
 }