[Commits] [wesnoth/wesnoth] 7d916c: Removed old Pandora compatibility code

GitHub noreply at github.com
Tue Sep 13 00:56:20 UTC 2016


  Branch: refs/heads/surface_cleanup
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 7d916c295e038576439ea3542a089b8a36ea2a10
      https://github.com/wesnoth/wesnoth/commit/7d916c295e038576439ea3542a089b8a36ea2a10
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M src/sdl/utils.cpp

  Log Message:
  -----------
  Removed old Pandora compatibility code


  Commit: c4497595bae651964b2677d88764224ad4043490
      https://github.com/wesnoth/wesnoth/commit/c4497595bae651964b2677d88764224ad4043490
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M src/floating_label.cpp
    M src/image.cpp
    M src/image_modifications.cpp
    M src/sdl/utils.cpp
    M src/sdl/utils.hpp

  Log Message:
  -----------
  Refactored out create_optimized_surface

Instead, we simply call adjust_surface_alpha directly. This removes the creation of another temporary surface.
This also removes cases when it's called after creating a surface with create_neutral_surface, since that
function should produce the same result.


Compare: https://github.com/wesnoth/wesnoth/compare/261ef0334c8d...c4497595bae6


More information about the Commits mailing list