[Commits] [wesnoth/wesnoth] 779174: GUI2/Canvas: set clip rect when tiling images

GitHub noreply at github.com
Tue Jun 20 03:09:28 UTC 2017


  Branch: refs/heads/accelerated_rendering
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 7791747c985238529da059f4b87cb4fc2cd6beb7
      https://github.com/wesnoth/wesnoth/commit/7791747c985238529da059f4b87cb4fc2cd6beb7
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-06-20 (Tue, 20 Jun 2017)

  Changed paths:
    M src/gui/core/canvas.cpp

  Log Message:
  -----------
  GUI2/Canvas: set clip rect when tiling images

This fixes an issue where images could be tiled outside their desired size area.


  Commit: a5a2548afadde948b84a6d68984e1e969287cf00
      https://github.com/wesnoth/wesnoth/commit/a5a2548afadde948b84a6d68984e1e969287cf00
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-06-20 (Tue, 20 Jun 2017)

  Changed paths:
    M data/gui/widget/window_default.cfg

  Log Message:
  -----------
  GUI2/Window: draw background image first instead of last

Originally was going to do this as workaround for the background tiling over the borders,
but I fixed the root cause of that instead. Still, this just makes more sense.


  Commit: af69524bcbe018291291255e95abe958a3334609
      https://github.com/wesnoth/wesnoth/commit/af69524bcbe018291291255e95abe958a3334609
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-06-20 (Tue, 20 Jun 2017)

  Changed paths:
    M src/gui/dialogs/outro.cpp
    M src/gui/dialogs/story_viewer.cpp

  Log Message:
  -----------
  GUI2: removed some unnecessary calls to canvas::set_is_dirty

The one in Outro was unnecessary since set_variable already calls set_is_dirty.
The one in the Story Viewer was there to deal with some background redraw issues which no longer appear
with the new drawing methods.


  Commit: d93655dc72cbf9117becd8c95d9ce28ca988e5b1
      https://github.com/wesnoth/wesnoth/commit/d93655dc72cbf9117becd8c95d9ce28ca988e5b1
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-06-20 (Tue, 20 Jun 2017)

  Changed paths:
    M src/sdl/window.cpp
    M src/sdl/window.hpp

  Log Message:
  -----------
  SDL/Window: removed pixel format member and promoted renderer info wholly to class member

The pixel format member was really rather useless, since SDL_RenderInfo returns an array of supported
formats and only the first one was being saved.


Compare: https://github.com/wesnoth/wesnoth/compare/15752f19e15d...d93655dc72cb


More information about the Commits mailing list