Search
lxdream.org :: lxdream :: r916:6fbba9e71516
lxdream 0.9.1
released Jun 29
Download Now
changeset916:6fbba9e71516
parent915:c989eb4c22d8
child917:2146dd5529fd
authornkeynes
dateFri Nov 07 07:39:52 2008 +0000 (11 years ago)
Fix incorrect calculation of width and size (darn missing parentheses)
src/pvr2/pvr2.c
1.1 --- a/src/pvr2/pvr2.c Fri Nov 07 06:39:12 2008 +0000
1.2 +++ b/src/pvr2/pvr2.c Fri Nov 07 07:39:52 2008 +0000
1.3 @@ -414,9 +414,9 @@
1.4 int vid_ppl = ((dispsize & DISPSIZE_PPL)) + 1;
1.5
1.6 fbuf.colour_format = output_colour_formats[(dispmode & DISPMODE_COLFMT) >> 2];
1.7 - fbuf.width = vid_ppl << 2 / colour_formats[fbuf.colour_format].bpp;
1.8 + fbuf.width = (vid_ppl << 2) / colour_formats[fbuf.colour_format].bpp;
1.9 fbuf.height = ((dispsize & DISPSIZE_LPF) >> 10) + 1;
1.10 - fbuf.size = vid_ppl << 2 * fbuf.height;
1.11 + fbuf.size = (vid_ppl << 2) * fbuf.height;
1.12 fbuf.rowstride = (vid_ppl + vid_stride) << 2;
1.13
1.14 /* Determine the field to display, and deinterlace if possible */
.