[Commits] [wesnoth/wesnoth] 9c1b9a: Use std::unique_ptr to manage the layout and conte...

GitHub noreply at github.com
Fri Jun 2 11:25:01 UTC 2017


  Branch: refs/heads/large-gui-canvas
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 9c1b9af525002ab32ed189c5d0f86f6ec71f7763
      https://github.com/wesnoth/wesnoth/commit/9c1b9af525002ab32ed189c5d0f86f6ec71f7763
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2017-06-02 (Fri, 02 Jun 2017)

  Changed paths:
    M projectfiles/VC12/wesnoth.vcxproj
    M projectfiles/VC12/wesnoth.vcxproj.filters
    R src/font/pango/iter.hpp
    M src/font/text.cpp
    M src/font/text.hpp

  Log Message:
  -----------
  Use std::unique_ptr to manage the layout and context in pango_text

This makes it easier for one canvas to manage multiple layouts.


  Commit: cdf675586eebf60b41ec333138fafb60a74289b8
      https://github.com/wesnoth/wesnoth/commit/cdf675586eebf60b41ec333138fafb60a74289b8
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2017-06-02 (Fri, 02 Jun 2017)

  Changed paths:
    M src/serialization/string_utils.cpp
    M src/serialization/string_utils.hpp

  Log Message:
  -----------
  Add utils::vertical_split()


  Commit: bdc5e7eac51add7d06e662a9e7c975c103440ffa
      https://github.com/wesnoth/wesnoth/commit/bdc5e7eac51add7d06e662a9e7c975c103440ffa
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2017-06-02 (Fri, 02 Jun 2017)

  Changed paths:
    M src/font/text.cpp
    M src/font/text.hpp
    M src/serialization/string_utils.hpp

  Log Message:
  -----------
  pango_text::set_layout(): Receive the layout as a function parameter

This allows the function to be used when the same canvas uses multiple
layouts.

The function also receives the text as a string view now.


  Commit: d90b1d1c439f4bc7624f7af6126290e91dd2ec43
      https://github.com/wesnoth/wesnoth/commit/d90b1d1c439f4bc7624f7af6126290e91dd2ec43
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2017-06-02 (Fri, 02 Jun 2017)

  Changed paths:
    M src/font/text.cpp
    M src/font/text.hpp

  Log Message:
  -----------
  Double maximum height of text labels

Fixes end credits not showing up if they are too long.


  Commit: 495c744cf15764943fc50cd8e575798d2b6245d6
      https://github.com/wesnoth/wesnoth/commit/495c744cf15764943fc50cd8e575798d2b6245d6
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2017-06-02 (Fri, 02 Jun 2017)

  Changed paths:
    M src/gui/dialogs/end_credits.cpp
    M src/gui/widgets/scroll_label.cpp
    M src/gui/widgets/scroll_label.hpp

  Log Message:
  -----------
  Mark credits label as link-unaware

This significantly speeds up opening the credits screen.


  Commit: 5e86da67b6cd3208266ce777dced832dcc58dfec
      https://github.com/wesnoth/wesnoth/commit/5e86da67b6cd3208266ce777dced832dcc58dfec
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2017-06-02 (Fri, 02 Jun 2017)

  Changed paths:
    M src/gui/dialogs/end_credits.cpp
    M src/gui/widgets/window.cpp
    M src/gui/widgets/window.hpp

  Log Message:
  -----------
  End credits: only start scrolling when the window is actually drawn

It turned out that "credits start halfway through" wasn't caused by my
changes. The cause was that, in debug builds, the initial draw of the
window took more than three seconds and therefore the window had already
scrolled when it appeared.

This commit fixes the issue.


  Commit: 7ef277666a9dc0e17121803c5385b70d5542c0cb
      https://github.com/wesnoth/wesnoth/commit/7ef277666a9dc0e17121803c5385b70d5542c0cb
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2017-06-02 (Fri, 02 Jun 2017)

  Changed paths:
    M src/font/text.cpp
    M src/serialization/string_utils.cpp
    M src/serialization/string_utils.hpp

  Log Message:
  -----------
  Use boost::string_view if available


  Commit: 7507f3cc65088586c0bd9fca9d4cd46cd9e8b874
      https://github.com/wesnoth/wesnoth/commit/7507f3cc65088586c0bd9fca9d4cd46cd9e8b874
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2017-06-02 (Fri, 02 Jun 2017)

  Changed paths:
    M projectfiles/VC12/wesnothlib.vcxproj
    M projectfiles/VC12/wesnothlib.vcxproj.filters
    M src/serialization/string_utils.hpp
    A src/serialization/string_view.hpp

  Log Message:
  -----------
  Copy string_view implementation from Boost

@gfgtdf asked me for this in IRC.


Compare: https://github.com/wesnoth/wesnoth/compare/18a2d8bbf7b8...7507f3cc6508


More information about the Commits mailing list