Re: Crack AstroMenace players needed!

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

 



Dnia 2007-12-06, o godz. 21:08:29 Hans de Goede <j.w.r.degoede@xxxxxx>
napisał(a):

> John, can you please no pass --mode in the .desktop and instead patch 
> astromenace so that the default when no config file is found becomes
> 640x480, that was what I meant initially, that way people can change things
> if they want, and we still have sane ( == working everywhere) defaults.
I'm attaching three patches:

astromenace-640x480.patch - this sets 640x480 windowed (BPP 0 means this) mode
as the default when there's no config file and as a fail-safe mode when
a mode read from configuration isn't available. Tested and proved working in
both situations. You should propose this upstream :)

astromenace.spec.patch - a patch for the spec file for your convenience

astromenace.desktop.patch - finally, a fix for the issue that was hurting
me, that's being forcing one mode :)

BTW, there's a newer version of the AM source available from Viewizard
website. I haven't tracked changes and I haven't tried if the "stuck mouse"
problem is fixed already. I was going to do it, but I was preparing and
testing the patches and now it's really time for me to sleep, sorry :)

Lam
diff -Naur AstroMenaceSourceCode-orig/AstroMenaceSource/ScriptEngine/Setup.cpp AstroMenaceSourceCode/AstroMenaceSource/ScriptEngine/Setup.cpp
--- AstroMenaceSourceCode-orig/AstroMenaceSource/ScriptEngine/Setup.cpp	2007-09-30 13:19:27.000000000 +0200
+++ AstroMenaceSourceCode/AstroMenaceSource/ScriptEngine/Setup.cpp	2007-12-06 22:30:37.000000000 +0100
@@ -48,9 +48,9 @@
 	Setup.BuildVersion = GAME_VERSION_BUILD;
 
 
-	Setup.Width = CurrentVideoMode.W;
-	Setup.Height = CurrentVideoMode.H;
-	Setup.BPP = CurrentVideoMode.BPP;
+	Setup.Width = 640;
+	Setup.Height = 480;
+	Setup.BPP = 0;
 	if ((Setup.Width*1.0f)/(Setup.Height*1.0f) < 1.4f)
 	{
 		Setup.fAspectRatioWidth = 1024.0f;
@@ -586,9 +586,9 @@
 		}
 		if (ResolutionNeedReset)
 		{
-			Setup.Width = CurrentVideoMode.W;
-			Setup.Height = CurrentVideoMode.H;
-			Setup.BPP = CurrentVideoMode.BPP;
+			Setup.Width = 640;
+			Setup.Height = 480;
+			Setup.BPP = 0;
 		}
 	}
 
--- astromenace.spec~	2007-12-06 22:35:25.000000000 +0100
+++ astromenace.spec	2007-12-06 22:35:25.000000000 +0100
@@ -10,6 +10,7 @@
 Source1: astromenace.desktop
 Source2: astromenace.png
 Patch0: astromenace-langvfs.patch
+Patch1: astromenace-640x480.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root%(%{__id_u} -n)
 BuildRequires: cmake, SDL-devel, openal-devel, freealut-devel, libogg-devel
 BuildRequires: libvorbis-devel, libjpeg-devel, desktop-file-utils
@@ -35,6 +36,7 @@
 chmod -x gpl-3.0.txt
 
 %patch0 -p0
+%patch1 -p1
 
 %build
 cmake .
--- astromenace.desktop~	2007-12-06 22:44:06.000000000 +0100
+++ astromenace.desktop	2007-12-06 22:44:06.000000000 +0100
@@ -2,7 +2,7 @@
 Type=Application
 Encoding=UTF-8
 Name=Astromenace
-Exec=astromenace-wrapper --noAA --dir=/usr/share/astromenace --mode=12
+Exec=astromenace-wrapper --noAA --dir=/usr/share/astromenace
 Comment=3D space shooter
 Icon=astromenace.png
 Terminal=false

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Fedora-games-list mailing list
Fedora-games-list@xxxxxxxxxx
http://www.redhat.com/mailman/listinfo/fedora-games-list

[Index of Archives]     [Fedora Music]     [Fedora Extras]     [Kernel]     [Fedora Desktop]     [Fedora Directory]     [PAM]     [CentOS]     [Gimp]     [Yosemite News]     [Yosemite Camping]

  Powered by Linux