[Commits] [wesnoth/wesnoth-old] f28e74: gui2/ttext_box: Workaround text AA issue with tran...

GitHub noreply at github.com
Fri Feb 21 03:36:03 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth-old
  Commit: f28e74c0bd125929c0a2dddd7544f40b2daaf6e4
      https://github.com/wesnoth/wesnoth-old/commit/f28e74c0bd125929c0a2dddd7544f40b2daaf6e4
  Author: Ignacio R. Morelle <shadowm at wesnoth.org>
  Date:   2014-02-20 (Thu, 20 Feb 2014)

  Changed paths:
    M data/gui/default/widget/text_box_default.cfg

  Log Message:
  -----------
  gui2/ttext_box: Workaround text AA issue with transparent background

... by making it not transparent.

For some reason, on Linux the antialiasing of the textbox text contents
looks slightly off when the background is a transparent (a != 255)
color. This does not happen when a solid color (a == 255) is used
instead.

Since Cairo AA is broken horribly with ClearType on Windows atm I'm not
really sure this specific bug also happens there.

To keep the intended effect of ebc214ff124ad4bb79700b509b1369766481c842,
I took a couple of screenshots of the textbox widget in both its enabled
and disabled states and averaged the background colors with the GIMP to
get an approximation of the result of blending the transparent overlay
from the GUI__BACKGROUND_COLOR_* macros with the standard dialog
background.


  Commit: a9298e1d6dfc845b6470bfaf1232fd18260ca618
      https://github.com/wesnoth/wesnoth-old/commit/a9298e1d6dfc845b6470bfaf1232fd18260ca618
  Author: Ignacio R. Morelle <shadowm at wesnoth.org>
  Date:   2014-02-20 (Thu, 20 Feb 2014)

  Changed paths:
    M data/gui/default/widget/text_box_default.cfg
    M data/gui/default/window/wml_message.cfg

  Log Message:
  -----------
  gui2/ttext_box: Add a 'transparent' backgroundless variant for WML [message]


Compare: https://github.com/wesnoth/wesnoth-old/compare/287a086e3bc9...a9298e1d6dfc


More information about the Commits mailing list