Fix the story parts with show_title=yes and story text...

...not having the black rectangle drawn behind.

(This affected A Tale of Two Brothers in mainline.)
This commit is contained in:
Ignacio R. Morelle 2008-11-13 18:19:42 +00:00
parent f4d4d564e5
commit 9bfc7dce61
2 changed files with 3 additions and 1 deletions

View File

@ -61,6 +61,8 @@ Version 1.5.5+svn:
* Gave the Goblin Pillager the same bite attack as the Wolf Rider. * Gave the Goblin Pillager the same bite attack as the Wolf Rider.
* New units: Dread Bat, Royal Warrior (character) * New units: Dread Bat, Royal Warrior (character)
* User interface: * User interface:
* Story parts that have show_title=yes and text at the same time have
now the text's background drawn.
* The new widget library now also supports closing a dialog with a mouse * The new widget library now also supports closing a dialog with a mouse
click without a close button. click without a close button.
* WML engine: * WML engine:

View File

@ -162,7 +162,7 @@ bool show_intro_part(display &disp, const config& part,
#endif #endif
// Darken the area for the text and buttons to be drawn on // Darken the area for the text and buttons to be drawn on
if(show_title == false) { if(part["story"].empty() == false) {
draw_solid_tinted_rectangle(0,texty,video.getx(),video.gety()-texty,0,0,0,0.5,video.getSurface()); draw_solid_tinted_rectangle(0,texty,video.getx(),video.gety()-texty,0,0,0,0.5,video.getSurface());
} }