[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Patches to fix fullscreen games viewport issues with recent Xorg versions



Hi,

On 11/11/2009 11:12 PM, Miriam Ruiz wrote:
2009/11/11 Hans de Goede<hdegoede@redhat.com>:
Hi,

With recent Xorg versions XF86VidModeSetViewPort() does not seem to
do anything. So fullscreen games which place an undecorated window
at 0,0 and then do XF86VidModeSetViewPort(.., 0, 0) no may end up with
the viewport wrong (showing part of the game and part of the
desktop).

This can be workedaround by doing a XWarpPointer() call to 0, 0
before XF86VidModeSwitchToMode().

SDL is already doing this, attached are patches for:
allegro
ClanLib-0.8 / 1.0 (0.6 and 2.x are not affected)
xgalaxy

Thanks Hans!

Do you know from which version of Xorg is this happening,

Not exactly, I think it has been happening for a while before I
noticed (it does not happen if your cursor is in the vicinity
of the top left corner of the screen when starting a game).

and if the
fix works properly with previous versions?


The workaround does not cause any issues for / with older
xorg versions,

Regards,

Hans


Reply to: