diff options
author | iive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-09-25 01:48:47 +0000 |
---|---|---|
committer | iive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-09-25 01:48:47 +0000 |
commit | 6d424a23985659bbddcbf18bf21c87f92e3aa6d4 (patch) | |
tree | 9e41cc4a9b7fd9f9944ce6bb70d534e49e2bff55 /libvo | |
parent | aee0faef0a5b0b7442a008f485aeedc65708e8fe (diff) | |
download | mpv-6d424a23985659bbddcbf18bf21c87f92e3aa6d4.tar.bz2 mpv-6d424a23985659bbddcbf18bf21c87f92e3aa6d4.tar.xz |
OSD stride fix and correct email
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10941 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_svga.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/libvo/vo_svga.c b/libvo/vo_svga.c index 9f9c658305..5eab25e3d8 100644 --- a/libvo/vo_svga.c +++ b/libvo/vo_svga.c @@ -99,7 +99,7 @@ static struct { static vo_info_t info = { "SVGAlib", "svga", - "Ivan Kalvachev <iive@sf.net>", + "Ivan Kalvachev <iive@users.sf.net>", "" }; @@ -645,7 +645,6 @@ vga_modeinfo * vminfo; 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 @@ static void draw_alpha(int x0, int y0, int w, int h, unsigned char *src, 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; } } |