OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Patch To Fix Issues With Sdl Full Screen Etc.
iamasmith
post Feb 13 2006, 06:00 AM
Post #1





Group: Members
Posts: 1,248
Joined: 6-July 04
Member No.: 3,928



Ref : http://marc.theaimsgroup.com/?l=openbsd-te...83729609134&w=2

Symptoms

SDL applications running full screen will display misaligned and appear partially off screen. scummvm in particular will start midway down the screen and disappear off screen.

Problem


The xf86vidmode extensions are returning unrotated screen geometry, i.e. 480x640 instead of 640x480. The application is using that geometry to determine the screen layout.

Solution

A small patch has been produced that corrects the issue in the wsfb_drv.so driver for the frame buffer.

The original version of this driver modified only the attributes related to the current screen which is why xdpyinfo would return 640x480 correctly but a query on the vidmode extension would return the incorrect geometry.

The new patch ensures that the vidmode line reported to xf86 is also updated with the translated screen geometry.

Note to run SDL applications full screen you wll also need to set the evironment variable SDL_VIDEO_X11_DGAMOUSE=0 to disable the attempt to use the DGA extensions for the mouse, otherwise the cursor will simply disappear.


For your convenience folks smile.gif

Go to /usr/X11R6/lib/modules/drivers

rename your original wsfb_drv.so file and replace with this one (rename this first of course tongue.gif)

Attached File  wsfb_drv.so.txt ( 20.97K ) Number of downloads: 93


an md5sum...

Attached File  wsfb_drv.so.md5sum.txt ( 46bytes ) Number of downloads: 31


and the patch for the folk who want to apply it themselves..

Attached File  wsfb_driver.c.extmodeqrypatch.txt ( 1.71K ) Number of downloads: 37
Go to the top of the page
 
+Quote Post
mathemajikian
post Aug 4 2006, 05:48 PM
Post #2





Group: Members
Posts: 304
Joined: 8-July 06
From: United Kingdom for now....
Member No.: 10,349



Andy, this is great! Your the best!

For those who don't know, if you apply this patch you get full screen prboom play with no frame dropping. I have super smooth and super fast game play using my SL-C3200..

QUOTE(iamasmith @ Feb 13 2006, 02:00 PM)
Ref : http://marc.theaimsgroup.com/?l=openbsd-te...83729609134&w=2

Symptoms

SDL applications running full screen will display misaligned and appear partially off screen. scummvm in particular will start midway down the screen and disappear off screen.

Problem


The xf86vidmode extensions are returning unrotated screen geometry, i.e. 480x640 instead of 640x480. The application is using that geometry to determine the screen layout.

Solution

A small patch has been produced that corrects the issue in the wsfb_drv.so driver for the frame buffer.

The original version of this driver modified only the attributes related to the current screen which is why xdpyinfo would return 640x480 correctly but a query on the vidmode extension would return the incorrect geometry.

The new patch ensures that the vidmode line reported to xf86 is also updated with the translated screen geometry.

Note to run SDL applications full screen you wll also need to set the evironment variable SDL_VIDEO_X11_DGAMOUSE=0 to disable the attempt to use the DGA extensions for the mouse, otherwise the cursor will simply disappear.


For your convenience folks smile.gif

Go to /usr/X11R6/lib/modules/drivers

rename your original wsfb_drv.so file and replace with this one (rename this first of course tongue.gif)

Attached File  wsfb_drv.so.txt ( 20.97K ) Number of downloads: 93


an md5sum...

Attached File  wsfb_drv.so.md5sum.txt ( 46bytes ) Number of downloads: 31


and the patch for the folk who want to apply it themselves..

Attached File  wsfb_driver.c.extmodeqrypatch.txt ( 1.71K ) Number of downloads: 37

*
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th December 2014 - 05:52 PM