diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-11-13 18:00:46 -0200 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-11-13 18:00:46 -0200 |
commit | d2709b1af22a06b24606ec8c01f39f1ca27ca8d3 (patch) | |
tree | 8fba29fadaf94fd0d9344cc78cd3f71628b2e244 /src/smi501_crtc.c | |
parent | 0870d46718fe4e01953efd63cec46c54140b20f9 (diff) |
Enable gamma correction on the MSOC.
Diffstat (limited to 'src/smi501_crtc.c')
-rw-r--r-- | src/smi501_crtc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/smi501_crtc.c b/src/smi501_crtc.c index 9e896b1..b827eed 100644 --- a/src/smi501_crtc.c +++ b/src/smi501_crtc.c @@ -65,6 +65,9 @@ SMI501_CrtcVideoInit_lcd(xf86CrtcPtr crtc) mode->panel_fb_width.f.offset = pitch >> 4; mode->panel_fb_width.f.width = width >> 4; + if (pSmi->Bpp > 1) + mode->panel_display_ctl.f.gamma = 1; + WRITE_SCR(pSmi, PANEL_DISPLAY_CTL, mode->panel_display_ctl.value); WRITE_SCR(pSmi, PANEL_FB_WIDTH, mode->panel_fb_width.value); @@ -97,6 +100,8 @@ SMI501_CrtcVideoInit_crt(xf86CrtcPtr crtc) mode->crt_fb_width.f.offset = pitch >> 4; mode->crt_fb_width.f.width = width >> 4; + if (pSmi->Bpp > 1) + mode->crt_display_ctl.f.gamma = 1; WRITE_SCR(pSmi, CRT_DISPLAY_CTL, mode->crt_display_ctl.value); WRITE_SCR(pSmi, CRT_FB_WIDTH, mode->crt_fb_width.value); |