[Commits] [wesnoth/wesnoth] 3de10e: Custom ToD: fixed bug where color sliders would co...

GitHub noreply at github.com
Tue Apr 25 01:17:00 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 3de10e5e61dfe07bb69b6a93743c7b71f1e28a6d
      https://github.com/wesnoth/wesnoth/commit/3de10e5e61dfe07bb69b6a93743c7b71f1e28a6d
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-04-25 (Tue, 25 Apr 2017)

  Changed paths:
    M src/gui/dialogs/editor/custom_tod.cpp

  Log Message:
  -----------
  Custom ToD: fixed bug where color sliders would continuously slide to the left when focused

This had something to do with the value being set agin when invalidate_layout was called, which then triggered
the callback, which then called invalidate_layout again...

The purpose of the call was to redraw the window. The same can be accomplished with set_is_dirty, though this
*might* need to be reverted if it turns out there isn't enough space to show a potential mask image. We'll see.


  Commit: 347fdd42bfd2399d6862c81be81108ec80512a2c
      https://github.com/wesnoth/wesnoth/commit/347fdd42bfd2399d6862c81be81108ec80512a2c
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-04-25 (Tue, 25 Apr 2017)

  Changed paths:
    M src/gui/dialogs/lua_interpreter.cpp

  Log Message:
  -----------
  Lua Console: prevent bad window redraw when commands such as wesnoth.zoom are used


Compare: https://github.com/wesnoth/wesnoth/compare/0031f9a45af5...347fdd42bfd2


More information about the Commits mailing list