diff libvo/vo_svga.c @ 989:1be1647ebd7d

flip_page gl_fillbox fix.
author se7encode
date Mon, 04 Jun 2001 11:27:42 +0000
parents 90408bd383a5
children bf2c01c5e9dc
line wrap: on
line diff
--- a/libvo/vo_svga.c	Mon Jun 04 09:38:18 2001 +0000
+++ b/libvo/vo_svga.c	Mon Jun 04 11:27:42 2001 +0000
@@ -511,10 +511,12 @@
   if (y_pos) {
     gl_fillbox(0, 0, WIDTH, y_pos, 0);
     gl_fillbox(0, HEIGHT - y_pos, WIDTH, y_pos, 0);
-  } else {
-      gl_fillbox(0, 0, x_pos, HEIGHT, 0);
-      gl_fillbox(WIDTH - x_pos, 0, x_pos, HEIGHT, 0);
-    }
+  }
+  if (x_pos) {
+    gl_fillbox(0, 0, x_pos, HEIGHT, 0);
+    gl_fillbox(WIDTH - x_pos, 0, x_pos, HEIGHT, 0);
+  }
+
   vo_draw_text(WIDTH, HEIGHT, draw_alpha);
   gl_copyscreen(screen);
 }