Page 1 of 1

Bug in SDL

Posted: Sun Sep 17, 2006 7:03 am
by gnif
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.

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) )
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 :D

Posted: Tue Sep 26, 2006 12:42 pm
by ShALLaX
Thanks :)