[wesnoth-commits] [wesnoth/wesnoth] 041e56: help: Use color_t::from_hex_string() instead of fr...
Iris Morelle
noreply at github.com
Wed Feb 17 20:30:18 UTC 2021
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 041e56e63b6b5fbad65a881ca7263b90bf058b8b
https://github.com/wesnoth/wesnoth/commit/041e56e63b6b5fbad65a881ca7263b90bf058b8b
Author: Iris Morelle <shadowm at wesnoth.org>
Date: 2021-02-17 (Wed, 17 Feb 2021)
Changed paths:
M src/help/help_impl.cpp
Log Message:
-----------
help: Use color_t::from_hex_string() instead of from_argb_bytes()
Colours obtained from help markup until now have been generated using
from_argb_bytes(), even though the caller ensures they are 7 characters
long and thus in #RRGGBB hex notation. When porting the help text render
code to pango_text, this resulted in text with colour set by markup
being rendered invisible with an alpha value of 0.
Unless we decide at a later point to support alpha values in help
markup, we want alpha to always be 255.
More information about the Commits
mailing list