# HG changeset patch # User atmosfear # Date 993302908 0 # Node ID e7c9e8eaa4261274f9c071a8c02b354ec8184842 # Parent 80ca716ce5e9be50ed2bbeb7d0ecf0976611ea16 Should fix bytes per pixel for 15bpp. diff -r 80ca716ce5e9 -r e7c9e8eaa426 libvo/vo_ggi.c --- a/libvo/vo_ggi.c Sat Jun 23 10:18:23 2001 +0000 +++ b/libvo/vo_ggi.c Sat Jun 23 13:28:28 2001 +0000 @@ -195,7 +195,7 @@ 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 @@ 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;