diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2006-09-27 01:13:41 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2006-09-27 01:13:41 +0000 |
commit | f80de70df3eb6d805002837efaa35a67b128dcab (patch) | |
tree | 9cdd37aacdccaa346175118561673134f9fbcd74 /firmware/target | |
parent | b8043fcbf9d434650b58971f669fff714510500a (diff) |
x5: Needed a couple tweaks to the contrast fix.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11077 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rwxr-xr-x | firmware/target/coldfire/iaudio/x5/lcd-x5.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/target/coldfire/iaudio/x5/lcd-x5.c b/firmware/target/coldfire/iaudio/x5/lcd-x5.c index ca341928aa..c00dc74b0c 100755 --- a/firmware/target/coldfire/iaudio/x5/lcd-x5.c +++ b/firmware/target/coldfire/iaudio/x5/lcd-x5.c @@ -121,6 +121,9 @@ void lcd_set_contrast(int val) lcd_contrast = val << 8; + if (!power_on) + return; + /* VCOMG=1, VDV4-0=xxxxx, VCM4-0=11000 */ lcd_write_reg(R_POWER_CONTROL5, 0x2018 | lcd_contrast); } @@ -372,8 +375,9 @@ void lcd_init_device(void) /* Power and display already ON */ power_on = true; display_on = true; - lcd_roll(0); lcd_set_flip(false); + lcd_roll(0); + lcd_set_invert_display(false); lcd_set_contrast(DEFAULT_CONTRAST_SETTING); #endif } |