]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] mbxfb: Fix framebuffer size smaller than requested
authorRaphael Assenat <raph@8d.com>
Tue, 3 Oct 2006 08:15:05 +0000 (01:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 3 Oct 2006 15:04:12 +0000 (08:04 -0700)
commit5c60b118d62c14ad7586ed6a6e537c3294c90227
treec4933389441e820d40683aa72c82e8750948c83c
parent8bc218410d6c2b22a7581fac6f3dc2ac1f8fc99f
[PATCH] mbxfb: Fix framebuffer size smaller than requested

This patch fixes a bug where we obtain a smaller resolution than requested.
(eg: in 640x480, only 639x479 usable pixels).

This was due to 1 being substracted from the xres and yres vars two times:
first in mbxfb.c and then in the macros from reg_bits.h.

This patch removes the minus ones from the mbxfb.c file. Tested and works.

Signed-off-by: Raphael Assenat <raph@8d.com>
Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/mbx/mbxfb.c