r3725 - packages/trunk/hex-a-hop/debian/patches
Jens Seidel
jseidel-guest at alioth.debian.org
Mon Aug 20 23:04:11 UTC 2007
Author: jseidel-guest
Date: 2007-08-20 23:04:11 +0000 (Mon, 20 Aug 2007)
New Revision: 3725
Modified:
packages/trunk/hex-a-hop/debian/patches/pango_fonts.patch
packages/trunk/hex-a-hop/debian/patches/remove_old_font_handling.patch
Log:
paragraph separator " " was changed to "\n\n\n " instead of "\n\n"
Modified: packages/trunk/hex-a-hop/debian/patches/pango_fonts.patch
===================================================================
--- packages/trunk/hex-a-hop/debian/patches/pango_fonts.patch 2007-08-20 22:21:08 UTC (rev 3724)
+++ packages/trunk/hex-a-hop/debian/patches/pango_fonts.patch 2007-08-20 23:04:11 UTC (rev 3725)
@@ -234,7 +234,7 @@
+
+ std::string msg(tmp_utf8);
+ while (split && msg.find(" ") != std::string::npos)
-+ msg.replace(msg.find(" "), std::string("\n").length(), "\n");
++ msg.replace(msg.find(" "), 2, "\n");
+
+ PrintC_Pango(x, y, width, msg);
+ /*
@@ -349,7 +349,7 @@
+
+ std::string text(msg_utf8);
+ while (text.find(" ") != std::string::npos)
-+ text.replace(text.find(" "), std::string("\n").length(), "\n");
++ text.replace(text.find(" "), 2, "\n");
+
+ InnerTextWindowRect.w = SCREEN_W-TILE_W1*2;
+ InnerTextWindowRect.h = SDLPangoTextHeight(text, InnerTextWindowRect.w);
Modified: packages/trunk/hex-a-hop/debian/patches/remove_old_font_handling.patch
===================================================================
--- packages/trunk/hex-a-hop/debian/patches/remove_old_font_handling.patch 2007-08-20 22:21:08 UTC (rev 3724)
+++ packages/trunk/hex-a-hop/debian/patches/remove_old_font_handling.patch 2007-08-20 23:04:11 UTC (rev 3725)
@@ -92,7 +92,7 @@
// TODO: Check that the maximal text width is already set
void PrintR(int x, int y, const char * string, ...)
@@ -489,23 +432,6 @@
- msg.replace(msg.find(" "), std::string("\n").length(), "\n");
+ msg.replace(msg.find(" "), 2, "\n");
PrintC_Pango(x, y, width, msg);
- /*
More information about the Pkg-games-commits
mailing list