patch for fb engine from

Simon Poole <simon.armlinux@themalago.net>

:)


SVN revision: 14202
This commit is contained in:
Carsten Haitzler 2005-04-14 17:38:49 +00:00
parent 64f05a5a25
commit 93e100825c
1 changed files with 4 additions and 2 deletions

View File

@ -224,9 +224,10 @@ fb_setmode(int width, int height, int depth, int refresh)
{
if ((modes[i].width == width) &&
(modes[i].height == height) &&
(!depth || modes[i].fb_var.bits_per_pixel == depth) &&
(modes[i].refresh == refresh))
{
modes[i].fb_var.bits_per_pixel = depth;
if (depth) modes[i].fb_var.bits_per_pixel = depth;
if (ioctl(fb, FBIOPUT_VSCREENINFO, &modes[i].fb_var) == -1)
perror("ioctl FBIOPUT_VSCREENINFO");
@ -295,9 +296,10 @@ fb_changemode(FB_Mode *cur_mode, int width, int height, int depth, int refresh)
{
if ((modes[i].width == width) &&
(modes[i].height == height) &&
(!depth || modes[i].fb_var.bits_per_pixel == depth) &&
(modes[i].refresh == refresh))
{
modes[i].fb_var.bits_per_pixel = depth;
if (depth) modes[i].fb_var.bits_per_pixel = depth;
if (ioctl(fb, FBIOPUT_VSCREENINFO, &modes[i].fb_var) == -1)
perror("ioctl FBIOPUT_VSCREENINFO");