[Commits] [wesnoth/wesnoth] d00e20: Make storyscreen respect draw-all events

GitHub noreply at github.com
Wed Feb 24 07:49:18 UTC 2016


  Branch: refs/heads/guifixes
  Home:   https://github.com/wesnoth/wesnoth
  Commit: d00e207202735498841be866c48f30c3e8858a03
      https://github.com/wesnoth/wesnoth/commit/d00e207202735498841be866c48f30c3e8858a03
  Author: Andreas Löf <andreas at alternating.net>
  Date:   2016-02-24 (Wed, 24 Feb 2016)

  Changed paths:
    M src/display.cpp
    M src/events.cpp
    M src/storyscreen/render.cpp
    M src/storyscreen/render.hpp
    M src/video.cpp

  Log Message:
  -----------
  Make storyscreen respect draw-all events

The storyscreen now marks itself as dirty on a draw-all event and
redraws itself. There's also some code cleanup in here.


  Commit: 12d1fd006fd359b66d044d0ad36679dbd8e3c892
      https://github.com/wesnoth/wesnoth/commit/12d1fd006fd359b66d044d0ad36679dbd8e3c892
  Author: Andreas Löf <andreas at alternating.net>
  Date:   2016-02-24 (Wed, 24 Feb 2016)

  Changed paths:
    M data/themes/_initial.cfg
    M src/display.cpp
    M src/display.hpp
    M src/widgets/button.cpp

  Log Message:
  -----------
  Resize action buttons dynamically on the main display

This adds the necessary bells and whistles to resize the GUI1 buttons
used in the main game display. It is rather painful as it involves
re-setting most of the attributes that affect the size.

These changes also adds two new draw-methods to the display class and
gets rid of the default parameters. This is to avoid warnings from
clang since the draw() method comes from a superclass to display now.

The GUI1 button's set_image has been updated to treat the image path
in the same way as it is treated in the constructor. This should not
be a problem since the method is not called from anywhere but the
display class, and that call is added in this commit.


Compare: https://github.com/wesnoth/wesnoth/compare/7565ae00d6a9...12d1fd006fd3


More information about the Commits mailing list