1
0
Fork 0
forked from len0rd/rockbox

Set remote LCD invert state in a clean way.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7760 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2005-11-06 01:26:42 +00:00
parent 97a21a3b36
commit ec8f328d89

View file

@ -240,7 +240,7 @@ void lcd_remote_set_invert_display(bool yesno)
{
cached_invert = yesno;
if (remote_initialized)
lcd_remote_write_command(LCD_REMOTE_CNTL_REVERSE_ON_OFF | yesno);
lcd_remote_write_command(LCD_REMOTE_CNTL_REVERSE_ON_OFF | (yesno?1:0));
}
/* turn the display upside down (call lcd_remote_update() afterwards) */