r3524 - in packages/trunk/fenix/debian: . patches
Miriam Ruiz
baby-guest at alioth.debian.org
Thu Aug 2 10:46:58 UTC 2007
Author: baby-guest
Date: 2007-08-02 10:46:58 +0000 (Thu, 02 Aug 2007)
New Revision: 3524
Added:
packages/trunk/fenix/debian/patches/fxi_apptitle.patch
Modified:
packages/trunk/fenix/debian/changelog
packages/trunk/fenix/debian/patches/series
Log:
Added fxi_apptitle.patch
Modified: packages/trunk/fenix/debian/changelog
===================================================================
--- packages/trunk/fenix/debian/changelog 2007-08-02 10:23:57 UTC (rev 3523)
+++ packages/trunk/fenix/debian/changelog 2007-08-02 10:46:58 UTC (rev 3524)
@@ -10,8 +10,7 @@
* Added debian/doc documentation files and updated debian/copyright
* Added development package with the headers for creating plugins.
* Added headers.patch to patch the development headers before installing.
- * Added fxdll_version.patch for knowing the API version of the plugins.
- * Added plugins_dir.patch so that plugins can be put in a common directory.
+ * Added fxi_apptitle.patch to be able to set the title of the window.
[ Cyril Brulebois ]
* Added XS-Vcs-Svn and XS-Vcs-Browser fields in the control file.
Added: packages/trunk/fenix/debian/patches/fxi_apptitle.patch
===================================================================
--- packages/trunk/fenix/debian/patches/fxi_apptitle.patch (rev 0)
+++ packages/trunk/fenix/debian/patches/fxi_apptitle.patch 2007-08-02 10:46:58 UTC (rev 3524)
@@ -0,0 +1,37 @@
+--- fenix-0.92a.dfsg1/fxi/src/main.c.orig 2007-08-02 10:27:57.000000000 +0000
++++ fenix-0.92a.dfsg1/fxi/src/main.c 2007-08-02 10:35:37.000000000 +0000
+@@ -258,6 +258,19 @@
+ //if (argv[i][j] == 'b') double_buffer = 1 ;
+ if (argv[i][j] == 'f') enable_filtering = 1 ;
+
++ if (argv[i][j] == 't')
++ {
++ if (argv[i][j+1] == 0)
++ {
++ if (i == argc-1)
++ gr_error (_("You must provide a title")) ;
++ if (apptitle) free(apptitle);
++ apptitle = strdup(argv[i+1]);
++ i++ ;
++ break ;
++ }
++ }
++
+ if (argv[i][j] == 'i')
+ {
+ if (argv[i][j+1] == 0)
+@@ -315,7 +328,13 @@
+ /* Init application title for windowed modes */
+
+ strcpy (dcbname, filename) ;
+- apptitle = strdup(filename) ;
++ if (!apptitle)
++ {
++ if (strcmp(filename, "-") != 0)
++ apptitle = strdup(filename) ;
++ else
++ apptitle = strdup("Fenix") ;
++ }
+
+ #ifdef TARGET_MAC
+ strcpy (files[current_file], filename);
Modified: packages/trunk/fenix/debian/patches/series
===================================================================
--- packages/trunk/fenix/debian/patches/series 2007-08-02 10:23:57 UTC (rev 3523)
+++ packages/trunk/fenix/debian/patches/series 2007-08-02 10:46:58 UTC (rev 3524)
@@ -12,4 +12,5 @@
fxi_return_values.patch
plugins_dir.patch
fxdll_version.patch
+fxi_apptitle.patch
0.92a_to_cvs-20070713.1513.patch
More information about the Pkg-games-commits
mailing list