summaryrefslogtreecommitdiffstats
path: root/libvo/vo_ggi.c
diff options
context:
space:
mode:
authoratmosfear <atmosfear@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-23 13:28:28 +0000
committeratmosfear <atmosfear@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-23 13:28:28 +0000
commiteb1bede70a31f9a36c4500842363309c700007b4 (patch)
treee709f0c9c5a965099eefade43ee7962be10a9475 /libvo/vo_ggi.c
parent8c924945b1cbd7eaded19adeaac87ba9a431ed49 (diff)
downloadmpv-eb1bede70a31f9a36c4500842363309c700007b4.tar.bz2
mpv-eb1bede70a31f9a36c4500842363309c700007b4.tar.xz
Should fix bytes per pixel for 15bpp.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1199 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_ggi.c')
-rw-r--r--libvo/vo_ggi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libvo/vo_ggi.c b/libvo/vo_ggi.c
index a7f201e592..c670fe176d 100644
--- a/libvo/vo_ggi.c
+++ b/libvo/vo_ggi.c
@@ -195,7 +195,7 @@ static int ggi_setmode(uint32_t d_width, uint32_t d_height, int d_depth)
mode.size.x, mode.size.y,
vo_depthonscreen, ggi_conf.bpp);
- ggi_conf.bppmul = ggi_conf.bpp/8;
+ ggi_conf.bppmul = (ggi_conf.bpp+7)/8;
return(0);
}
@@ -326,8 +326,8 @@ static uint32_t init(uint32_t width, uint32_t height, uint32_t d_width,
ggi_conf.format = format;
- ggi_conf.framePlaneRGB = width * height * (ggi_conf.bpp/8); /* fix it! */
- ggi_conf.stridePlaneRGB = width * (ggi_conf.bpp/8);
+ ggi_conf.framePlaneRGB = width * height * ((ggi_conf.bpp+7)/8); /* fix it! */
+ ggi_conf.stridePlaneRGB = width * ((ggi_conf.bpp+7)/8);
#ifdef GGI_PLANAR_NOCONV
ggi_conf.framePlaneY = width * height;
ggi_conf.framePlaneUV = (width * height) >> 2;