Return old button value if lcd_button_supprt was blocked.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20041 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2009-02-18 17:43:38 +00:00
parent 30255d53da
commit 5e3b4fe3f8
2 changed files with 14 additions and 13 deletions

View file

@ -435,7 +435,7 @@ void lcd_update_rect(int x, int y, int width, int height)
} /* lcd_update_rect */
/* writes one read pixel outside the visible area, needed for correct dbop reads */
void lcd_button_support(void)
bool lcd_button_support(void)
{
int x=LCD_HEIGHT+1;
int y=LCD_WIDTH+1;
@ -444,7 +444,7 @@ void lcd_button_support(void)
unsigned short data = (0xf<<12);
if (lcd_busy)
return;
return false;
lcd_write_reg(R_ENTRY_MODE, R_ENTRY_MODE_HORZ);
/* Set start position and window */
@ -457,4 +457,5 @@ void lcd_button_support(void)
lcd_write_cmd(R_WRITE_DATA_2_GRAM);
lcd_write_data(&data, width);
return true;
}