From baa5591c5edfe0f6b9eb4cfd35344eb18da1943b Mon Sep 17 00:00:00 2001 From: Ville Syrjala Date: Tue, 4 Mar 2008 14:28:46 -0800 Subject: [PATCH] --- yaml --- r: 86797 b: refs/heads/master c: 5619d823bc0e49d05618cdf955b04055b51a7de5 h: refs/heads/master i: 86795: be3fe02d1e40d2f2e48f001aa474faa15faeb336 v: v3 --- [refs] | 2 +- trunk/drivers/video/sm501fb.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 4590eee0481a..ea3ab9ab9744 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5cba6d22e35a05adb28fdea191b232501518c455 +refs/heads/master: 5619d823bc0e49d05618cdf955b04055b51a7de5 diff --git a/trunk/drivers/video/sm501fb.c b/trunk/drivers/video/sm501fb.c index e83dfba7e636..6e7810d914cc 100644 --- a/trunk/drivers/video/sm501fb.c +++ b/trunk/drivers/video/sm501fb.c @@ -397,7 +397,7 @@ static int sm501fb_set_par_common(struct fb_info *info, break; case 16: - info->fix.visual = FB_VISUAL_DIRECTCOLOR; + info->fix.visual = FB_VISUAL_TRUECOLOR; break; case 32: @@ -613,6 +613,7 @@ static int sm501fb_set_par_crt(struct fb_info *info) case 16: control |= SM501_DC_CRT_CONTROL_16BPP; + sm501fb_setup_gamma(fbi, SM501_DC_CRT_PALETTE); break; case 32: @@ -750,6 +751,7 @@ static int sm501fb_set_par_pnl(struct fb_info *info) case 16: control |= SM501_DC_PANEL_CONTROL_16BPP; + sm501fb_setup_gamma(fbi, SM501_DC_PANEL_PALETTE); break; case 32: