r4237 - packages/trunk/hex-a-hop/debian/patches
Jens Seidel
jseidel-guest at alioth.debian.org
Tue Sep 18 22:19:56 UTC 2007
Author: jseidel-guest
Date: 2007-09-18 22:19:56 +0000 (Tue, 18 Sep 2007)
New Revision: 4237
Modified:
packages/trunk/hex-a-hop/debian/patches/pango_fonts.patch
Log:
Use a left and right border in the help dialog as suggested by nori in #443118
Modified: packages/trunk/hex-a-hop/debian/patches/pango_fonts.patch
===================================================================
--- packages/trunk/hex-a-hop/debian/patches/pango_fonts.patch 2007-09-18 21:41:13 UTC (rev 4236)
+++ packages/trunk/hex-a-hop/debian/patches/pango_fonts.patch 2007-09-18 22:19:56 UTC (rev 4237)
@@ -359,7 +359,7 @@
+ text.replace(text.find(" "), 2, "\n");
+
+ InnerTextWindowRect.w = SCREEN_W-TILE_W1*2;
-+ InnerTextWindowRect.h = SDLPangoTextHeight(text, InnerTextWindowRect.w);
++ InnerTextWindowRect.h = SDLPangoTextHeight(text, InnerTextWindowRect.w - 2*FONT_SPACING);
+ InnerTextWindowRect.h += FONT_SPACING;
+ OuterTextWindowRect = InnerTextWindowRect;
+ OuterTextWindowRect.w += 4;
@@ -395,7 +395,7 @@
- Print(r.x+FONT_SPACING/4, y-FONT_SPACING, title);
- PrintC(true, x+SCREEN_W/2, y+FONT_SPACING/2, msg);
+ Print(OuterTextWindowRect.x+FONT_SPACING/4, y-FONT_SPACING, "%s", title);
-+ PrintC(true, x+SCREEN_W/2, y+FONT_SPACING/2, InnerTextWindowRect.w, "%s", msg);
++ PrintC(true, x+SCREEN_W/2, y+FONT_SPACING/2, InnerTextWindowRect.w - 2*FONT_SPACING, "%s", msg);
}
virtual void Mouse(int /*x*/, int /*y*/, int /*dx*/, int /*dy*/, int buttons_pressed, int /*buttons_released*/, int /*buttons*/)
More information about the Pkg-games-commits
mailing list