Author Topic: Patch To Fix Issues With Sdl Full Screen Etc.  (Read 2724 times)

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Patch To Fix Issues With Sdl Full Screen Etc.
« on: February 13, 2006, 09:00:25 am »
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

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

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



an md5sum...



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

 [ Invalid Attachment ]
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

mathemajikian

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
    • http://exit3.i-55.com/~xikon/openbsdzaurus.html
Patch To Fix Issues With Sdl Full Screen Etc.
« Reply #1 on: August 04, 2006, 09:48:38 pm »
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
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

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

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

 [ Invalid Attachment ]

an md5sum...

 [ Invalid Attachment ]

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

 [ Invalid Attachment ]
[div align=\"right\"][a href=\"index.php?act=findpost&pid=114640\"][{POST_SNAPBACK}][/a][/div]