We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2441

Summary: SDL_DuplicateSurface
Product: SDL Reporter: Rainer Deyke <rainerd>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: enhancement    
Priority: P2 CC: philipp.wiesemann
Version: HG 2.0   
Hardware: All   
OS: All   
Attachments: The patch.

Description Rainer Deyke 2014-03-09 15:30:37 UTC
Created attachment 1588 [details]
The patch.

I've written a small patch that adds a small SDL_DuplicateSurface function to SDL.  I've written the function as part of a larger (as yet unfinished) patch, but I think this function is useful enough that it merits inclusion in SDL on its own.
Comment 1 Philipp Wiesemann 2014-03-16 12:01:42 UTC
A prototype in a header (e.g. SDL_surface.h) would be needed to provide correct access to this function.
Comment 2 Ryan C. Gordon 2015-02-19 05:22:23 UTC
Marking a large number of bugs with the "triage-2.0.4" keyword at once. Sorry if you got a lot of email from this. This is to help me sort through some bugs in regards to a 2.0.4 release. We may or may not fix this bug for 2.0.4, though!
Comment 3 Sam Lantinga 2017-08-14 20:37:27 UTC
Added, thanks!
https://hg.libsdl.org/SDL/rev/ca3c2c98f2e1