]> git.baikalelectronics.ru Git - kernel.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)
commitb57d5e42711c9bdd14af871d5e2ac780bbe33389
treec4933389441e820d40683aa72c82e8750948c83c
parent221fa10aed9c244c5d812a505c889ac5b9a18fce
[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