[Commits] [wesnoth/wesnoth] 9d8160: Call display::draw() before setting theme UI butto...

GitHub noreply at github.com
Sat May 30 07:21:50 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 9d816006ef1dd1e0665cb36274998fb4a3a406b9
      https://github.com/wesnoth/wesnoth/commit/9d816006ef1dd1e0665cb36274998fb4a3a406b9
  Author: Ignacio R. Morelle <shadowm at wesnoth.org>
  Date:   2015-05-30 (Sat, 30 May 2015)

  Changed paths:
    M changelog
    M players_changelog
    M src/playsingle_controller.cpp

  Log Message:
  -----------
  Call display::draw() before setting theme UI button states

draw() calls draw_init(), which in turn calls draw_all_panels(), which
destroys all theme UI buttons, meaning the icon overlays set on them by
set_button_state() are lost until that function is mysteriously called
at a later time, either when control is transferred to the player after
completing the start event, or the player presses the left mouse button
on the minimap buttons (??????) or some other unspecified UI event takes
place either automatically or through player interaction.

This is really a patch over 8e3cfc8a2b30c4e0ea36308aa7dcb6480bc15d76,
where I failed to make sure one of the affected add-on scenarios would
no longer reproduce the bug before pushing.





More information about the Commits mailing list