mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Fuzev2: use RGB565SWAPPED (pointed out by amiconn) => 91fps
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25478 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5b8aca84dc
commit
0f951b1de8
4 changed files with 6 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue