Skip to content

Commit

Permalink
GUI2/Message: tweaked Magic Numbers to fix layout failure with large …
Browse files Browse the repository at this point in the history
…portraits

[ci skip]

Fixes #2912

(cherry-picked from commit 9bf7a4c)
  • Loading branch information
Vultraz committed Oct 7, 2018
1 parent 790326b commit ef09c1d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.md
Expand Up @@ -103,6 +103,7 @@
unlike in 1.12 (issue #3033).
* Fixed the first unit sometimes not being selected when opening the Recall
dialog.
* Fixed a crash when using very large portraits in [message] (issue #2912)
### WML engine
* Support formula= key in [variable] ConditionalWML
* Support to_location in [move_unit], taking a location ID
Expand Down
8 changes: 7 additions & 1 deletion data/gui/window/wml_message.cfg
Expand Up @@ -36,7 +36,13 @@ where
0
)
),
max_height = (gamemap_height - 4)
# TODO: this is rather hacky. The old value was gamemap_height - 4 but that caused
# crashes with the 727 px high Rithrandil portrait in TRoW. This value seems to work,
# but the fact that it crashed at all points to some deeper logic flaw in the size
# calculation formulas here. Need to revisit at some point...
#
# -- vultraz, 2018-05-24
max_height = (gamemap_height - 30)
)
)#enddef

Expand Down

0 comments on commit ef09c1d

Please sign in to comment.