[Commits] [wesnoth/wesnoth] 3ad8dd: Editor: fixed text sometimes drawing in the wrong ...

GitHub noreply at github.com
Fri May 5 01:33:34 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 3ad8dda48e0c8deb0be5e9c3e59234f07d5702f1
      https://github.com/wesnoth/wesnoth/commit/3ad8dda48e0c8deb0be5e9c3e59234f07d5702f1
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-05-05 (Fri, 05 May 2017)

  Changed paths:
    M src/editor/palette/location_palette.cpp

  Log Message:
  -----------
  Editor: fixed text sometimes drawing in the wrong place on the location palette buttons

Seems the GUI1 buttons handle text by centering it based on height. By setting the height to 30 to
provide vertical padding it caused the text to occasionally be drawn off-center. This sets the
hight correctly and uses the extra offset measurement for the y loc only.





More information about the Commits mailing list