[Commits] [wesnoth/wesnoth] 5657a6: GUI2/Window: removed empty undraw() function
GitHub
noreply at github.com
Wed Jun 21 20:26:40 UTC 2017
Branch: refs/heads/accelerated_rendering
Home: https://github.com/wesnoth/wesnoth
Commit: 5657a67df0ade4657c08a2bf54f15fa1e28f2ad2
https://github.com/wesnoth/wesnoth/commit/5657a67df0ade4657c08a2bf54f15fa1e28f2ad2
Author: Charles Dang <exodia339 at gmail.com>
Date: 2017-06-21 (Wed, 21 Jun 2017)
Changed paths:
M src/gui/dialogs/editor/custom_tod.cpp
M src/gui/dialogs/editor/custom_tod.hpp
M src/gui/dialogs/loading_screen.cpp
M src/gui/dialogs/modeless_dialog.cpp
M src/gui/widgets/window.cpp
M src/gui/widgets/window.hpp
Log Message:
-----------
GUI2/Window: removed empty undraw() function
This was emptied earlier in my refactor when window unrendering was removed. I simply hadn't
removed the function yet.
Commit: 3d23a6d206e3639b169b8d39fa1ddffa883e75a1
https://github.com/wesnoth/wesnoth/commit/3d23a6d206e3639b169b8d39fa1ddffa883e75a1
Author: Charles Dang <exodia339 at gmail.com>
Date: 2017-06-22 (Thu, 22 Jun 2017)
Changed paths:
M src/gui/core/canvas.cpp
M src/image.cpp
M src/image.hpp
M src/sdl/render_utils.hpp
M src/sdl/window.cpp
Log Message:
-----------
Split texture caches into linear and NN scaled versions
With textures, you can't change render scale quality once they've been created. To rectify this, I've
made the texture caches a map of caches, sorted by scale quality. This should result in no performance
overhead, since an image is simply added to the appropriate quality cache on creation instead of in
a single cache. If a different version of a texture is needed it will be loaded later.
By default, load_texture will return images using nearest neighbor scaling. GUI2 always fetches images
using linear scaling. This is consistent with the old software rendering method. Plus, we don't have
any way (as of now) to specify the render quality on a per-image basis.
Compare: https://github.com/wesnoth/wesnoth/compare/30f4ec11c277...3d23a6d206e3
More information about the Commits
mailing list