[Commits] [wesnoth/wesnoth] 7abad2: Font/Pango Text: fixed some weird color precision ...

GitHub noreply at github.com
Fri Jul 14 14:45:17 UTC 2017


  Branch: refs/heads/accelerated_rendering
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 7abad2e6659f5a359067a4e411d8e7b5dbb0d04b
      https://github.com/wesnoth/wesnoth/commit/7abad2e6659f5a359067a4e411d8e7b5dbb0d04b
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-07-15 (Sat, 15 Jul 2017)

  Changed paths:
    M src/font/text.cpp

  Log Message:
  -----------
  Font/Pango Text: fixed some weird color precision levels

cairo_set_source_rgba takes color and alpha parameters as 0..1.0 doubles. A fully opaque channel value (255)
was being set as 0.99609375 instead of 1.0, which it should be.


  Commit: 2ba0171a7eda90c90f3362bff904e811a6202344
      https://github.com/wesnoth/wesnoth/commit/2ba0171a7eda90c90f3362bff904e811a6202344
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-07-15 (Sat, 15 Jul 2017)

  Changed paths:
    M src/gui/core/canvas.cpp

  Log Message:
  -----------
  GUI2/Canvas: handle text alpha as a render-time op

This reduces the number of times the text itself needs to be rendered, especially for areas like the
story viewer where the only difference is alpha.


Compare: https://github.com/wesnoth/wesnoth/compare/cf4414a922da...2ba0171a7eda


More information about the Commits mailing list