[Commits] [wesnoth/wesnoth] 9144fe: Use blit_surface() instead of SDL_BlitSurface() in...
GitHub
noreply at github.com
Sat Mar 8 01:52:11 UTC 2014
Branch: refs/heads/1.12
Home: https://github.com/wesnoth/wesnoth
Commit: 9144fe1e3cb5fdb6360fecea6d6aac64503f4461
https://github.com/wesnoth/wesnoth/commit/9144fe1e3cb5fdb6360fecea6d6aac64503f4461
Author: Ignacio R. Morelle <shadowm at wesnoth.org>
Date: 2014-03-07 (Fri, 07 Mar 2014)
Changed paths:
M changelog
M src/image_modifications.cpp
Log Message:
-----------
Use blit_surface() instead of SDL_BlitSurface() in the ~BG() implementation
For some reason, ~BG() used SDL_BlitSurface() directly instead of using
the alternate blit_surface() implementation, unlike every other image
path function type in existence that needs to do blitting.
This works the first time when scaling or cropping an image (say,
"misc/blank-hex.png~BG()~CROP(0,0,34,34)"), but the second time it's
used with different scaling/cropping parameters, it yields the result it
would without ~BG() in the pipeline. This is somehow remedied by this
change, and I don't see any potential issues arising from it anyway
(save for a negligible performance impact on ~BG(), maybe).
More information about the Commits
mailing list