mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
hiby: Use HAVE_LCD_ENABLE instead of HAVE_LCD_SLEEP
Change-Id: I93819f5ecaad9101a711a0cca626570c7aef0e57
This commit is contained in:
parent
53b93ea6a6
commit
5cdfe30e79
1 changed files with 5 additions and 5 deletions
|
@ -92,7 +92,7 @@ void lcd_enable(bool on)
|
||||||
{
|
{
|
||||||
const char * const sysfs_fb_blank = "/sys/class/graphics/fb0/blank";
|
const char * const sysfs_fb_blank = "/sys/class/graphics/fb0/blank";
|
||||||
|
|
||||||
#ifdef HAVE_LCD_SLEEP
|
#ifdef HAVE_LCD_ENABLE
|
||||||
if (lcd_active() != on)
|
if (lcd_active() != on)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
@ -118,8 +118,8 @@ extern void lcd_copy_buffer_rect(fb_data *dst, const fb_data *src,
|
||||||
|
|
||||||
void lcd_update(void)
|
void lcd_update(void)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_LCD_SLEEP
|
#ifdef HAVE_LCD_ENABLE
|
||||||
if (lcd_active() != on)
|
if (lcd_active())
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
/* Copy the Rockbox framebuffer to the second framebuffer */
|
/* Copy the Rockbox framebuffer to the second framebuffer */
|
||||||
|
@ -131,8 +131,8 @@ void lcd_update(void)
|
||||||
|
|
||||||
void lcd_update_rect(int x, int y, int width, int height)
|
void lcd_update_rect(int x, int y, int width, int height)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_LCD_SLEEP
|
#ifdef HAVE_LCD_ENABLE
|
||||||
if (lcd_active() != on)
|
if (lcd_active())
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
fb_data *dst = LCD_FRAMEBUF_ADDR(x, y);
|
fb_data *dst = LCD_FRAMEBUF_ADDR(x, y);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue