Wrong characters in Adonthell.
Bug #151516 reported by
Major Andras
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
adonthell (Debian) |
New
|
Undecided
|
Unassigned | ||
adonthell (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: adonthell
In the game, named "Adonthell" every character has an ugly black backdrop.
The last errorless version is in dapper.
Changed in adonthell: | |
status: | Incomplete → Fix Released |
To post a comment you must log in.
This problem does not exist in the upstream version. It is introduced by a debian patch to the file win_ttf.cc
+Index: adonthell- 0.3.4.cvs. 20050813/ src/win_ ttf.cc ======= ======= ======= ======= ======= ======= ======= ======= ===== 0.3.4.cvs. 20050813. orig/src/ win_ttf. cc 2006-08-10 20:50:05.000000000 +0200 0.3.4.cvs. 20050813/ src/win_ ttf.cc 2006-08-10 20:50:18.000000000 +0200 ODE_Solid (ttf, unichar, bg), white); ODE_Shaded (ttf, unichar, bg, bg), white); :trans_ col(), NULL); -shadow. height( ), 0, 0, shadow.length(), shadow.height(), NULL, glph); 0.3.4.cvs. 20050813. orig/debian/ control 0.3.4.cvs. 20050813/ debian/ control
+======
+--- adonthell-
++++ adonthell-
+@@ -137,7 +137,7 @@
+ if (s == NULL) return *(glyphs[' ']);
+
+ image tmp (s, bg);
+- image shadow (TTF_RenderUNIC
++ image shadow (TTF_RenderUNIC
+ image *glph = new image (tmp.length(), height_, false);
+ glph->fillrect (0, 0, tmp.length()+1, height_+1, screen:
+ shadow.draw (1, 1+height_
--- adonthell-
+++ adonthell-
It is supposed to fix a segfault that since is also fixed in upstream CVS. The proper patch __to the original version from CVS__ that corrects the segfault and does not exhibit the black boxes around the dialog text would be
--- win_ttf.cc 2004/12/13 08:56:58 1.2
+++ win_ttf.cc 2006/09/03 20:48:08 1.3
@@ -1,5 +1,5 @@
/*
- $Id: win_ttf.cc,v 1.2 2004/12/13 08:56:58 ksterker Exp $
+ $Id: win_ttf.cc,v 1.3 2006/09/03 20:48:08 ksterker Exp $
(C) Copyright 2004 Kai Sterker adonthell. linuxgames. com
Part of the Adonthell Project http://
@@ -137,10 +137,20 @@
if (s == NULL) return *(glyphs[' ']);
image tmp (s, bg); ODE_Solid (ttf, unichar, bg), white); :trans_ col(), NULL); -shadow. height( ), 0, 0, shadow.length(), shadow.height(), NULL, glph); DE_Solid (ttf, unichar, bg); -shadow. height( ), 0, 0, shadow.length(), shadow.height(), NULL, glph); -tmp.height( ), 0, 0, tmp.length(), tmp.height(), NULL, glph);
- image shadow (TTF_RenderUNIC
image *glph = new image (tmp.length(), height_, false);
glph->fillrect (0, 0, tmp.length()+1, height_+1, screen:
- shadow.draw (1, 1+height_
+
+ s = TTF_RenderUNICO
+ if (s != NULL)
+ {
+ image shadow (s, white);
+ shadow.draw (1, 1+height_
+ }
+ else
+ {
+ fprintf (stderr, "%s\n", TTF_GetError ());
+ }
+
tmp.draw (0, height_
glyphs[glyph] = glph;
Kai