mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-14 15:42:28 -05:00
XWorld: some fixes
Fixes sound on most platforms, original root cause was bad menu code as well as DMA callbacks taking too long. Worked around with smaller chunk sizes. Permanent fix would include moving mixing out of the callback. Rewrites input with code from rockboy/doom. Cherry-picks a change from Gregory Montoir's `rawgl' to patch the code wheel screen. Finally, adds a motion blur filter on select targets. Change-Id: I8df549c923c5075800c6625c36c8202e53de1d27
This commit is contained in:
parent
deaeb73912
commit
05733649bc
10 changed files with 347 additions and 141 deletions
|
|
@ -34,11 +34,18 @@ struct Ptr {
|
|||
uint8_t* pc;
|
||||
};
|
||||
|
||||
uint8_t scriptPtr_fetchByte(struct Ptr* p) ICODE_ATTR;
|
||||
uint16_t scriptPtr_fetchWord(struct Ptr* p) ICODE_ATTR;
|
||||
|
||||
struct Point {
|
||||
int16_t x, y;
|
||||
};
|
||||
|
||||
static inline uint8_t scriptPtr_fetchByte(struct Ptr* p) {
|
||||
return *p->pc++;
|
||||
}
|
||||
|
||||
static inline uint16_t scriptPtr_fetchWord(struct Ptr* p) {
|
||||
uint16_t i = READ_BE_UINT16(p->pc);
|
||||
p->pc += 2;
|
||||
return i;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue