[Commits] [wesnoth/wesnoth] 7b34af: color_t: fix from_rgb_string

GitHub noreply at github.com
Sat Dec 10 10:21:37 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 7b34afdbe372e939ae6b0b7e170e9ecc0eb0dcbf
      https://github.com/wesnoth/wesnoth/commit/7b34afdbe372e939ae6b0b7e170e9ecc0eb0dcbf
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-12-10 (Sat, 10 Dec 2016)

  Changed paths:
    M src/color.cpp

  Log Message:
  -----------
  color_t: fix from_rgb_string


  Commit: 4dbd219292db7a143315164382c355a1506c846b
      https://github.com/wesnoth/wesnoth/commit/4dbd219292db7a143315164382c355a1506c846b
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-12-10 (Sat, 10 Dec 2016)

  Changed paths:
    M src/gui/widgets/label.cpp

  Log Message:
  -----------
  GUI2/Label: quick fix for label links not being formatted correctly

In 8041a0964e7b the label format was changed to an RGB string, but still passed around verbatim.
This is a quick fix that converts the color into a hex string. The color should probably be stored
as color_t internally, but I'm not sure what to do with the areas that involve formulas operating
on the string.


Compare: https://github.com/wesnoth/wesnoth/compare/8da0284a3ade...4dbd219292db


More information about the Commits mailing list