when installing games/pydance via ports it breaks right after start with an error-message: SDL_ttf render failed Fix: just put the appended patch in games/pydance/files/patch-fontfx.py 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)--04CvzvOzvarvaq1090957i7SRuaGg6K4OiQZz7YhJTIe7Ye2 Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" --- 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 How-To-Repeat: just start pydance
State Changed From-To: open->feedback Awaiting maintainers feedback
State Changed From-To: feedback->open Maintainer timeout
arved 2007-03-18 14:42:24 UTC FreeBSD ports repository Modified files: games/pydance Makefile Added files: games/pydance/files patch-fontfx.py Log: Fix runtime issue: "SDL_ttf render failed" PR: 109148 Submitted by: Hannes Frederic Sowa Approved by: maintainer timeout Revision Changes Path 1.12 +1 -0 ports/games/pydance/Makefile 1.1 +21 -0 ports/games/pydance/files/patch-fontfx.py (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed committed, thanks!