mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
fix lcd mirror and rotation problem on the e200v2. also remove a wierd whitespace charchter
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18913 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6a038d1a97
commit
0a8446ad7d
1 changed files with 3 additions and 3 deletions
|
|
@ -94,7 +94,7 @@ static void lcd_delay(int x)
|
||||||
/* DBOP initialisation, do what OF does */
|
/* DBOP initialisation, do what OF does */
|
||||||
static void ams3525_dbop_init(void)
|
static void ams3525_dbop_init(void)
|
||||||
{
|
{
|
||||||
CGU_DBOP = (1<<3) | (4-1);
|
CGU_DBOP = (1<<3) | (4-1);
|
||||||
|
|
||||||
DBOP_TIMPOL_01 = 0xe167e167;
|
DBOP_TIMPOL_01 = 0xe167e167;
|
||||||
DBOP_TIMPOL_23 = 0xe167006e;
|
DBOP_TIMPOL_23 = 0xe167006e;
|
||||||
|
|
@ -373,7 +373,7 @@ void lcd_update(void)
|
||||||
if (!display_on)
|
if (!display_on)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
lcd_write_reg(R_ENTRY_MODE, R_ENTRY_MODE_SOLID_VERT);
|
lcd_write_reg(R_ENTRY_MODE, R_ENTRY_MODE_HORZ);
|
||||||
|
|
||||||
/* Set start position and window */
|
/* Set start position and window */
|
||||||
lcd_write_reg(R_HORIZ_RAM_ADDR_POS,
|
lcd_write_reg(R_HORIZ_RAM_ADDR_POS,
|
||||||
|
|
@ -411,7 +411,7 @@ void lcd_update_rect(int x, int y, int width, int height)
|
||||||
if (y >= ymax)
|
if (y >= ymax)
|
||||||
return; /* nothing left to do */
|
return; /* nothing left to do */
|
||||||
|
|
||||||
lcd_write_reg(R_ENTRY_MODE, R_ENTRY_MODE_SOLID_VERT);
|
lcd_write_reg(R_ENTRY_MODE, R_ENTRY_MODE_HORZ);
|
||||||
/* Set start position and window */
|
/* Set start position and window */
|
||||||
lcd_write_reg(R_HORIZ_RAM_ADDR_POS,
|
lcd_write_reg(R_HORIZ_RAM_ADDR_POS,
|
||||||
((y_offset + LCD_HEIGHT-1) << 8) | y_offset);
|
((y_offset + LCD_HEIGHT-1) << 8) | y_offset);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue