changeset 10940:b99be2c88faf

OSD stride fix and correct email
author iive
date Thu, 25 Sep 2003 01:48:47 +0000
parents 55c9903bd51c
children 9946ec8d67a9
files libvo/vo_svga.c
diffstat 1 files changed, 5 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_svga.c	Thu Sep 25 00:36:04 2003 +0000
+++ b/libvo/vo_svga.c	Thu Sep 25 01:48:47 2003 +0000
@@ -99,7 +99,7 @@
 static vo_info_t info = {
     "SVGAlib",
     "svga",
-    "Ivan Kalvachev <iive@sf.net>",
+    "Ivan Kalvachev <iive@users.sf.net>",
     ""
 };
 
@@ -645,7 +645,6 @@
 static void draw_alpha(int x0, int y0, int w, int h, unsigned char *src,
                        unsigned char *srca, int stride) {
   char* base;
-  int bytelen;
 
   if(verbose>2)
     printf("vo_svga: draw_alpha(x0=%d,y0=%d,w=%d,h=%d,src=%p,srca=%p,stride=%d\n",
@@ -659,19 +658,18 @@
   if(verbose>3)
     printf("vo_svga: OSD draw in page %d\n",cpage);
   base=PageStore[cpage].vbase + y0*mode_stride + x0*modeinfo->bytesperpixel;
-  bytelen = modeinfo->width * modeinfo->bytesperpixel;   
   switch (mode_bpp) {
     case 32: 
-      vo_draw_alpha_rgb32(w, h, src, srca, stride, base, bytelen);
+      vo_draw_alpha_rgb32(w, h, src, srca, stride, base, mode_stride);
       break;
     case 24: 
-      vo_draw_alpha_rgb24(w, h, src, srca, stride, base, bytelen);
+      vo_draw_alpha_rgb24(w, h, src, srca, stride, base, mode_stride);
       break;
     case 16:
-      vo_draw_alpha_rgb16(w, h, src, srca, stride, base, bytelen);
+      vo_draw_alpha_rgb16(w, h, src, srca, stride, base, mode_stride);
       break;
     case 15:
-      vo_draw_alpha_rgb15(w, h, src, srca, stride, base, bytelen);
+      vo_draw_alpha_rgb15(w, h, src, srca, stride, base, mode_stride);
       break;
   }
 }