From db7fd2ce2726264d847ea3c9fe21f6f2e58ece45 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sep 10 2009 20:45:59 +0000 Subject: - Fix (workaround) viewport issues in fullscreen mode (#522116) --- diff --git a/allegro-4.2.2-fullscreen-viewport.patch b/allegro-4.2.2-fullscreen-viewport.patch new file mode 100644 index 0000000..22a7515 --- /dev/null +++ b/allegro-4.2.2-fullscreen-viewport.patch @@ -0,0 +1,16 @@ +--- allegro-4.2.2/src/x/xwin.c 2009-09-10 22:29:53.000000000 +0200 ++++ allegro-4.2.2.new/src/x/xwin.c 2009-09-10 21:48:21.000000000 +0200 +@@ -2853,6 +2853,13 @@ + } + } + ++ /* Warp the pointer to the upper left corner (where our fs_window is), ++ this is necessary as the: XF86VidModeSetViewPort() call below does ++ not seem to do anything on newer Xorg servers, instead the viewport ++ seems to always be centered at the last mouse cursor position. */ ++ XWarpPointer(_xwin.display, None, XDefaultRootWindow(_xwin.display), ++ 0, 0, 0, 0, 0, 0); ++ + /* Switch video mode. */ + if ((_xwin.modesinfo[i] == _xwin.orig_modeinfo) || + !XF86VidModeSwitchToMode(_xwin.display, _xwin.screen, diff --git a/allegro.spec b/allegro.spec index 4132f96..477a73a 100644 --- a/allegro.spec +++ b/allegro.spec @@ -1,6 +1,6 @@ Name: allegro Version: 4.2.2 -Release: 13%{?dist} +Release: 14%{?dist} Summary: A game programming library Summary(es): Una libreria de programacion de juegos @@ -21,6 +21,7 @@ Patch6: allegro-4.0.3-libdir.patch Patch7: allegro-4.2.2-pulseaudio.patch Patch8: allegro-4.2.2-gcc43.patch Patch9: allegro-4.2.2-gcc43-asm.patch +Patch10: allegro-4.2.2-fullscreen-viewport.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: esound-devel, texinfo, perl, arts-devel, glib2-devel BuildRequires: xorg-x11-proto-devel, libX11-devel, libXext-devel, libXt-devel @@ -166,6 +167,7 @@ sound through JACK (Jack Audio Connection Kit). %patch7 -p1 -z .pulse %patch8 -p1 -z .gcc43 %patch9 -p1 -z .gcc43-asm +%patch10 -p1 -z .fs-viewport iconv -f iso-8859-1 -t utf-8 docs/src/allegro._tx > docs/src/allegro._tx.tmp mv docs/src/allegro._tx.tmp docs/src/allegro._tx @@ -294,6 +296,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Thu Sep 10 2009 Hans de Goede 4.2.2-14 +- Fix (workaround) viewport issues in fullscreen mode (#522116) + * Fri Jul 24 2009 Fedora Release Engineering - 4.2.2-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild