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 » 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.

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

User avatar
ShALLaX
Site Admin
Posts: 1973
Joined: Sun Aug 10, 2003 9:25 pm
Location: England
Contact:

Post by ShALLaX » Tue Sep 26, 2006 12:42 pm

Thanks :)
The original Xbox adaptation of Gentoo

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests