[Commits] [wesnoth/wesnoth] b09d96: Display: exit render_scaled_to_zoom early if passe...

GitHub noreply at github.com
Sat Jul 22 22:05:52 UTC 2017


  Branch: refs/heads/accelerated_rendering
  Home:   https://github.com/wesnoth/wesnoth
  Commit: b09d965679f42710507d8f7da8eaa81e02e272b1
      https://github.com/wesnoth/wesnoth/commit/b09d965679f42710507d8f7da8eaa81e02e272b1
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-07-22 (Sat, 22 Jul 2017)

  Changed paths:
    M src/display.hpp

  Log Message:
  -----------
  Display: exit render_scaled_to_zoom early if passed texture is null


  Commit: 319e5c1e62d4cc4155e49b74d7018a1a8920aca5
      https://github.com/wesnoth/wesnoth/commit/319e5c1e62d4cc4155e49b74d7018a1a8920aca5
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-07-22 (Sat, 22 Jul 2017)

  Changed paths:
    M src/display.cpp
    M src/display.hpp

  Log Message:
  -----------
  Display: avoid temp vectors when rendering partial fog/shround images on hex


  Commit: b95f56405c95dc17af61e3a2e2e318a420f21d4f
      https://github.com/wesnoth/wesnoth/commit/b95f56405c95dc17af61e3a2e2e318a420f21d4f
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-07-22 (Sat, 22 Jul 2017)

  Changed paths:
    M src/halo.cpp

  Log Message:
  -----------
  Halos: fixed incorrect drawing origin when at non-default zoom


  Commit: c144222b9afd2d4235dfd18b6f807d785801c08b
      https://github.com/wesnoth/wesnoth/commit/c144222b9afd2d4235dfd18b6f807d785801c08b
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-07-22 (Sat, 22 Jul 2017)

  Changed paths:
    M src/gui/core/canvas.cpp
    M src/sdl/render_utils.hpp
    M src/sdl/window.cpp

  Log Message:
  -----------
  Moved SDL_SetRenderDrawColor wrapper to utils file and added a second overload

Also renamed the function to a more colloquial version.


  Commit: 1bc69ce3a3a3e666a0798189ab3a8a0d884a5968
      https://github.com/wesnoth/wesnoth/commit/1bc69ce3a3a3e666a0798189ab3a8a0d884a5968
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-07-23 (Sun, 23 Jul 2017)

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

  Log Message:
  -----------
  GUI2/Canvas: optimized cached texture management

Instead of throwing out the cached texture every time the canvas was dirty, I've added a flag so that
only happens if its size has actually changed. There still seem to be some issues in GUI2 where canvas
objects keep getting reset, but I'm not sure why. Will have to look into that.

Anyway, the addition of the SDL_RenderClear call also seems to have fixed the weird graphics bleed-through
I was getting when running the game with the OGL driver.

I don't know if the canvas copy or move ctors are needed for anything. I added them for a test, but I'll
leave them for now in case I need them later.


Compare: https://github.com/wesnoth/wesnoth/compare/4e2c1ceeac2f...1bc69ce3a3a3


More information about the Commits mailing list