rpms/allegro/devel allegro-4.2.2-fullscreen-viewport.patch, NONE, 1.1 allegro.spec, 1.55, 1.56

Hans de Goede jwrdegoede at fedoraproject.org
Thu Sep 10 20:46:01 UTC 2009


Author: jwrdegoede

Update of /cvs/extras/rpms/allegro/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv14636

Modified Files:
	allegro.spec 
Added Files:
	allegro-4.2.2-fullscreen-viewport.patch 
Log Message:
* Thu Sep 10 2009 Hans de Goede <hdegoede at redhat.com> 4.2.2-14
- Fix (workaround) viewport issues in fullscreen mode (#522116)


allegro-4.2.2-fullscreen-viewport.patch:
 xwin.c |    7 +++++++
 1 file changed, 7 insertions(+)

--- NEW FILE allegro-4.2.2-fullscreen-viewport.patch ---
--- 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,


Index: allegro.spec
===================================================================
RCS file: /cvs/extras/rpms/allegro/devel/allegro.spec,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -p -r1.55 -r1.56
--- allegro.spec	24 Jul 2009 16:44:13 -0000	1.55
+++ allegro.spec	10 Sep 2009 20:45:59 -0000	1.56
@@ -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.pat
 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 Connectio
 %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 <hdegoede at redhat.com> 4.2.2-14
+- Fix (workaround) viewport issues in fullscreen mode (#522116)
+
 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 4.2.2-13
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list