summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sansa-fuzev2
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-04-05 07:10:01 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-04-05 07:10:01 +0000
commit0f951b1de817eaf311a6d2bc949865cc80c61201 (patch)
treef95d054c3d54de2e7e94a8429a690716aeaa0443 /firmware/target/arm/as3525/sansa-fuzev2
parent5b8aca84dca69bad86c2f01811e91faad130ecae (diff)
Fuzev2: use RGB565SWAPPED (pointed out by amiconn) => 91fps
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25478 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/sansa-fuzev2')
-rw-r--r--firmware/target/arm/as3525/sansa-fuzev2/lcd-fuzev2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/as3525/sansa-fuzev2/lcd-fuzev2.c b/firmware/target/arm/as3525/sansa-fuzev2/lcd-fuzev2.c
index b337a14eac..618d242c4a 100644
--- a/firmware/target/arm/as3525/sansa-fuzev2/lcd-fuzev2.c
+++ b/firmware/target/arm/as3525/sansa-fuzev2/lcd-fuzev2.c
@@ -133,7 +133,7 @@ static void dbop_write_data(const int16_t* p_bytes, int count)
{ /* need to do a single 16bit write beforehand if the address is
* not word aligned or count is 1, switch to 16bit mode if needed */
dbop_set_mode(16);
- DBOP_DOUT16 = swap16(*p_bytes++);
+ DBOP_DOUT16 = *p_bytes++;
if (!(--count))
return;
}
@@ -146,7 +146,7 @@ static void dbop_write_data(const int16_t* p_bytes, int count)
while (count > 1)
{
- DBOP_DOUT32 = swap_odd_even32(*data++);
+ DBOP_DOUT32 = *data++;
count -= 2;
/* Wait if push fifo is full */
@@ -179,7 +179,7 @@ static void lcd_write_cmd(unsigned short cmd)
static void lcd_write_reg(int reg, int value)
{
- int16_t data = value;
+ int16_t data = swap16(value);
lcd_write_cmd(reg);
dbop_write_data(&data, 1);
}