Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure cut_surface gets a neutral surface.
Also change its return to an optimised surface. Fixes bug #20876. From the comment added to the source: Unlike other image functions cut_surface does not convert the input surface to a neutral surface, nor does it convert its return surface to an optimised surface. Since it seems to work for most cases, rather change this caller instead of the function signature. (The issue was discovered in bug #20876).
- Loading branch information