aboutsummaryrefslogtreecommitdiffstats
path: root/games/pydance
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2007-03-18 22:42:23 +0800
committerarved <arved@FreeBSD.org>2007-03-18 22:42:23 +0800
commit05e05f89c18f3fedc0aa9ec214ba6a9c4810c92b (patch)
treee92768c4724fe25ff2dbbad0c1927e15aecbcf06 /games/pydance
parent15fc4ef1d4e1fe342916bf9c217af2068a333053 (diff)
downloadfreebsd-ports-gnome-05e05f89c18f3fedc0aa9ec214ba6a9c4810c92b.tar.gz
freebsd-ports-gnome-05e05f89c18f3fedc0aa9ec214ba6a9c4810c92b.tar.zst
freebsd-ports-gnome-05e05f89c18f3fedc0aa9ec214ba6a9c4810c92b.zip
Fix runtime issue:
"SDL_ttf render failed" PR: 109148 Submitted by: Hannes Frederic Sowa Approved by: maintainer timeout
Diffstat (limited to 'games/pydance')
-rw-r--r--games/pydance/Makefile1
-rw-r--r--games/pydance/files/patch-fontfx.py21
2 files changed, 22 insertions, 0 deletions
diff --git a/games/pydance/Makefile b/games/pydance/Makefile
index a94789838837..2701b6b267d9 100644
--- a/games/pydance/Makefile
+++ b/games/pydance/Makefile
@@ -7,6 +7,7 @@
PORTNAME= pydance
PORTVERSION= 1.0.3
+PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= \
http://offload1.icculus.org/pyddr/ \
diff --git a/games/pydance/files/patch-fontfx.py b/games/pydance/files/patch-fontfx.py
new file mode 100644
index 000000000000..a562a1e8105a
--- /dev/null
+++ b/games/pydance/files/patch-fontfx.py
@@ -0,0 +1,21 @@
+--- fontfx.py.orig Wed Feb 14 02:45:59 2007
++++ fontfx.py Wed Feb 14 02:50:23 2007
+@@ -144,7 +144,7 @@
+ self.bgcolor = bgcolor
+ self.offcolor = [c^40 for c in color]
+ self.notcolor = [c^0xFF for c in color]
+- self.text = font.render(message, False, [255, 0, 0], self.notcolor)
++ self.text = font.render(message, True, [255, 0, 0], self.notcolor)
+ self.text.set_colorkey(1, RLEACCEL)
+ self.outline = self.textHollow(font, message, color)
+ self.bar = pygame.Surface(self.text.get_size())
+@@ -155,7 +155,7 @@
+ self.ratio = width / 100.0
+
+ def textHollow(self, font, message, fontcolor):
+- base = font.render(message, 0, fontcolor, self.notcolor)
++ base = font.render(message, True, fontcolor, self.notcolor)
+ size = base.get_width() + 2, base.get_height() + 2
+ img = pygame.Surface(size, 16)
+ img.fill(self.notcolor)
+