rpms/ClanLib/devel ClanLib-1.0.0-fullscreen-viewport.patch, NONE, 1.1 ClanLib.spec, 1.21, 1.22

Hans de Goede jwrdegoede at fedoraproject.org
Thu Sep 10 21:10:50 UTC 2009


Author: jwrdegoede

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

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


ClanLib-1.0.0-fullscreen-viewport.patch:
 display_window_opengl.cpp |    7 +++++++
 1 file changed, 7 insertions(+)

--- NEW FILE ClanLib-1.0.0-fullscreen-viewport.patch ---
diff -up ClanLib-1.0.0/Sources/GL/GLX/display_window_opengl.cpp~ ClanLib-1.0.0/Sources/GL/GLX/display_window_opengl.cpp
--- ClanLib-1.0.0/Sources/GL/GLX/display_window_opengl.cpp~	2008-11-13 17:09:02.000000000 +0100
+++ ClanLib-1.0.0/Sources/GL/GLX/display_window_opengl.cpp	2009-09-10 22:58:10.000000000 +0200
@@ -612,6 +612,13 @@ void CL_DisplayWindow_OpenGL::set_resolu
 				XF86VidModeGetViewPort(disp, vi->screen,
 					&old_x, &old_y);
 			}
+			/* Warp the pointer to the upper left corner, this is
+			   necessary as the: XF86VidModeSetViewPort() call
+			   below does not seem to do anything on newer Xorg
+			   servers, instead the viewport appears to be always
+			   centered at the last mouse position */
+			XWarpPointer(disp, None, XDefaultRootWindow(disp),
+				     0, 0, 0, 0, 0, 0);
 			XF86VidModeSwitchToMode(disp, vi->screen,
 				modes[i]);
 		}


Index: ClanLib.spec
===================================================================
RCS file: /cvs/extras/rpms/ClanLib/devel/ClanLib.spec,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -p -r1.21 -r1.22
--- ClanLib.spec	24 Jul 2009 15:04:07 -0000	1.21
+++ ClanLib.spec	10 Sep 2009 21:10:49 -0000	1.22
@@ -1,7 +1,7 @@
 Summary:        Cross platform C++ game library
 Name:           ClanLib
 Version:        1.0.0
-Release:        2%{?dist}
+Release:        3%{?dist}
 Group:          System Environment/Libraries
 License:        zlib
 URL:            http://www.clanlib.org/
@@ -12,6 +12,7 @@ Source0:        http://www.clanlib.org/d
 # tar cvfz ClanLib-%{version}-generated-docs.tar.gz html
 Source1:        ClanLib-%{version}-generated-docs.tar.gz
 Patch0:         ClanLib-0.8.0-gcc43.patch
+Patch1:         ClanLib-1.0.0-fullscreen-viewport.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  libX11-devel libXi-devel libXmu-devel libGLU-devel libICE-devel
 BuildRequires:  libXext-devel libXxf86vm-devel libXt-devel xorg-x11-proto-devel
@@ -37,6 +38,7 @@ ClanLib development headers and librarie
 %prep
 %setup -q -a 1
 %patch0 -p1
+%patch1 -p1
 iconv -f iso8859-1 -t utf8 NEWS -o NEWS.utf8
 touch -r NEWS.utf8 NEWS
 mv NEWS.utf8 NEWS
@@ -96,6 +98,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Thu Sep 10 2009 Hans de Goede <hdegoede at redhat.com> 1.0.0-3
+- Fix (workaround) viewport issues in fullscreen mode (#522116)
+
 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.0-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list