Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use blit_surface() instead of SDL_BlitSurface() in the ~BG() implemen…
…tation 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).
- Loading branch information