Bug in SDL

Talk about anything related to Gentoox or Gentoo.
Post Reply
gnif
Novice
Posts: 42
Joined: Wed Sep 13, 2006 2:07 pm

Bug in SDL

Post 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
ShALLaX
Site Admin
Posts: 1973
Joined: Sun Aug 10, 2003 9:25 pm
Location: England
Contact:

Post by ShALLaX »

Thanks :)
The original Xbox adaptation of Gentoo
Post Reply