Search
lxdream.org :: lxdream/src/pvr2/pvr2.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.c
changeset 916:6fbba9e71516
prev890:a9896953e9a1
next921:6c0e9a8f5618
author nkeynes
date Fri Nov 07 07:39:52 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Fix incorrect calculation of width and size (darn missing parentheses)
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.c Thu Oct 23 08:30:47 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 */
.