From eb1bede70a31f9a36c4500842363309c700007b4 Mon Sep 17 00:00:00 2001 From: atmosfear Date: Sat, 23 Jun 2001 13:28:28 +0000 Subject: Should fix bytes per pixel for 15bpp. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1199 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_ggi.c | 6 +++--- 1 file 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; -- cgit v1.2.3