[Commits] [wesnoth/wesnoth] eba94b: Cleaned up unnecessary drawing calls

GitHub noreply at github.com
Mon Nov 27 19:39:08 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: eba94b3e22022ebb3f455723a60ef6b6518284fa
      https://github.com/wesnoth/wesnoth/commit/eba94b3e22022ebb3f455723a60ef6b6518284fa
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-11-28 (Tue, 28 Nov 2017)

  Changed paths:
    M src/actions/advancement.cpp
    M src/actions/attack.cpp
    M src/actions/move.cpp
    M src/actions/undo.cpp
    M src/actions/unit_creator.cpp
    M src/editor/controller/editor_controller.cpp
    M src/editor/map/context_manager.cpp
    M src/game_display.cpp
    M src/menu_events.cpp
    M src/mouse_events.cpp
    M src/mouse_handler_base.cpp
    M src/play_controller.cpp
    M src/playmp_controller.cpp
    M src/playsingle_controller.cpp
    M src/replay_controller.cpp
    M src/units/udisplay.cpp

  Log Message:
  -----------
  Cleaned up unnecessary drawing calls

After testing, it seems these calls to raise_draw_event and display/game_display::draw()
were unnecessary - or at least, became unnecessary at some point. One or two are definitely
still needed, but removing these doesn't seem to cause anything to to glitch out. Likely
explanation is anything that needs updating just gets updated either immediately or on the
next play_slice loop.





More information about the Commits mailing list