[SDL] [patch] add support for rotated linux framebuffers

Mike Frysinger vapier at gentoo.org
Thu Sep 14 20:37:22 PDT 2006


i brought this up some time ago but hadnt gotten a real chance until now to 
put together a patch ... to refresh people's minds, the issue at hand is that 
some framebuffer devices are rotated so you'll have resolutions like 240x320 
rather than 320x240.  while we could duplicate all the scannable resolutions 
and their vsync values, that's no fun

so in the attached patch, i have the framebuffer code swap the X and Y values 
and do a second pass for each vesa entry

this is a copy & paste patch from 1.2.9 to latest svn, i'm just unable to 
compile latest svn at the moment it would seem (the DirectFB and FBCON video 
drivers fail)
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060914/d77f898d/attachment-0007.pgp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sdl-check-reversed.patch
Type: text/x-diff
Size: 3999 bytes
Desc: not available
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060914/d77f898d/attachment-0007.patch>


More information about the SDL mailing list