Bug in SDL
Posted: Sun Sep 17, 2006 7:03 am
For those that may be trying to use SDL on the xbox.. there is a bug in the fbcon rivifb driver that causes it to wait forever and never switch video modes.
Below is the diff for "src/video/fbcon/SDL_fbriva.c" that fixes this problem.
I am unsure if this is xbox specific or not... someone might be able to confirm for me.
Needless to say, SDL is working 100% now
Below is the diff for "src/video/fbcon/SDL_fbriva.c" that fixes this problem.
Code: Select all
48c48
< (*(mapped_io + PGRAPH_OFFSET + 0x000006B0) & 0x01) )
---
> (*(mapped_io + PGRAPH_OFFSET + (0x000006B0 / 4)) & 0x01) )
55c55
< (*(mapped_io + PGRAPH_OFFSET + 0x00000700) & 0x01) )
---
> (*(mapped_io + PGRAPH_OFFSET + (0x00000700 / 4)) & 0x01) )
Needless to say, SDL is working 100% now