# HG changeset patch # User iive # Date 1064454527 0 # Node ID b99be2c88faf38d9047dfc2d9c390cf75a5d6721 # Parent 55c9903bd51c1dffe582846f8f08e8e7da13eacd OSD stride fix and correct email diff -r 55c9903bd51c -r b99be2c88faf libvo/vo_svga.c --- 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 ", + "Ivan Kalvachev ", "" }; @@ -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; } }