changeset 9727:695825b70485

100l to Gabu, this caused divide-by-zero with -vo mga. Apparently someone only tested -vo xmga. Feel free to reenable if you can fix the sigfpe properly.
author rfelker
date Sat, 29 Mar 2003 19:56:31 +0000
parents c9a2a31bede0
children df23774c0468
files libvo/mga_common.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/mga_common.c	Sat Mar 29 18:58:08 2003 +0000
+++ b/libvo/mga_common.c	Sat Mar 29 19:56:31 2003 +0000
@@ -27,7 +27,7 @@
 
 static void draw_alpha(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride){
     uint32_t bespitch = (mga_vid_config.src_width + 31) & ~31;
-    x0+=mga_vid_config.src_width*(vo_panscan_x>>1)/(vo_dwidth+vo_panscan_x);
+//    x0+=mga_vid_config.src_width*(vo_panscan_x>>1)/(vo_dwidth+vo_panscan_x);
     switch(mga_vid_config.format){
     case MGA_VID_FORMAT_YV12:
     case MGA_VID_FORMAT_IYUV:
@@ -45,7 +45,8 @@
 
 static void draw_osd(void)
 {
-    vo_draw_text(mga_vid_config.src_width-mga_vid_config.src_width*vo_panscan_x/(vo_dwidth+vo_panscan_x),mga_vid_config.src_height,draw_alpha);
+    vo_draw_text(mga_vid_config.src_width,mga_vid_config.src_height,draw_alpha);
+//    vo_draw_text(mga_vid_config.src_width-mga_vid_config.src_width*vo_panscan_x/(vo_dwidth+vo_panscan_x),mga_vid_config.src_height,draw_alpha);
 }