r3716 - in packages/trunk/hex-a-hop/debian: . patches
Jens Seidel
jseidel-guest at alioth.debian.org
Mon Aug 20 14:21:59 UTC 2007
Author: jseidel-guest
Date: 2007-08-20 14:21:59 +0000 (Mon, 20 Aug 2007)
New Revision: 3716
Added:
packages/trunk/hex-a-hop/debian/patches/i18n_increase_array_sizes.patch
Modified:
packages/trunk/hex-a-hop/debian/changelog
packages/trunk/hex-a-hop/debian/patches/series
Log:
* Increased a few short arrays containing translated
strings. Especially 40 bytes for optionSlotName are too
short for Russian and Bulgarian. Closes: #438800
Modified: packages/trunk/hex-a-hop/debian/changelog
===================================================================
--- packages/trunk/hex-a-hop/debian/changelog 2007-08-20 14:09:43 UTC (rev 3715)
+++ packages/trunk/hex-a-hop/debian/changelog 2007-08-20 14:21:59 UTC (rev 3716)
@@ -12,6 +12,9 @@
is now always wrapped if necessary.
* The dialog sizes are now calculated properly.
* Old font code removed. Closes: #438857
+ * Increased a few short arrays containing translated
+ strings. Especially 40 bytes for optionSlotName are too
+ short for Russian and Bulgarian. Closes: #438800
-- Jens Seidel <jensseidel at users.sf.net> Mon, 20 Aug 2007 15:40:41 +0200
Added: packages/trunk/hex-a-hop/debian/patches/i18n_increase_array_sizes.patch
===================================================================
--- packages/trunk/hex-a-hop/debian/patches/i18n_increase_array_sizes.patch (rev 0)
+++ packages/trunk/hex-a-hop/debian/patches/i18n_increase_array_sizes.patch 2007-08-20 14:21:59 UTC (rev 3716)
@@ -0,0 +1,49 @@
+# Copyright (C) 2007 Jens Seidel <jensseidel at users.sf.net>
+# Licensed under the GPL, see /usr/share/common-licenses/GPL
+
+Index: hex-a-hop.svn/hex_puzzzle.cpp
+===================================================================
+--- hex-a-hop.svn.orig/hex_puzzzle.cpp 2007-08-20 16:20:07.000000000 +0200
++++ hex-a-hop.svn/hex_puzzzle.cpp 2007-08-20 16:20:24.000000000 +0200
+@@ -1562,7 +1562,7 @@
+ if (t <= numComplete)
+ return 0;
+
+- static char tmp1[100];
++ static char tmp1[1000];
+ static LevelInfo tmp = {0, "", tmp1};
+ if (t-numComplete==1)
+ sprintf(tmp1, _("Complete 1 more level to unlock!"));
+Index: hex-a-hop.svn/menus.h
+===================================================================
+--- hex-a-hop.svn.orig/menus.h 2007-08-20 16:20:12.000000000 +0200
++++ hex-a-hop.svn/menus.h 2007-08-20 16:22:59.000000000 +0200
+@@ -151,7 +151,7 @@
+ SDL_Rect InnerTextWindowRect;
+ SDL_Rect OuterTextWindowRect;
+ const char * msg;
+- char title[50]; // FIXME
++ char title[500];
+ int state;
+
+ const SDL_Rect &GetInnerWindowRect() const
+@@ -389,8 +389,8 @@
+ OPT_END, OPT_END2,
+ };
+
+-char optionSlotName[MAX_GAMESLOT][40] = { {0} };
+-char currentSlot[80] = "";
++char optionSlotName[MAX_GAMESLOT][400] = { {0} };
++char currentSlot[800] = "";
+ int freeSlot = -1;
+ char* GetSlotName(int i, char * t)
+ {
+@@ -1010,7 +1010,7 @@
+
+ struct DeleteConfirmMenu : public OptMenuTitle
+ {
+- char tmp[80];
++ char tmp[800];
+ int num;
+ DeleteConfirmMenu(int _num) : OptMenuTitle(&tmp[0]), num(_num)
+ {
Modified: packages/trunk/hex-a-hop/debian/patches/series
===================================================================
--- packages/trunk/hex-a-hop/debian/patches/series 2007-08-20 14:09:43 UTC (rev 3715)
+++ packages/trunk/hex-a-hop/debian/patches/series 2007-08-20 14:21:59 UTC (rev 3716)
@@ -8,3 +8,4 @@
pango_fonts.patch
remove_old_font_handling.patch
array_subscripts_warning.patch
+i18n_increase_array_sizes.patch
More information about the Pkg-games-commits
mailing list