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 - SDL_DuplicateSurface
Summary: SDL_DuplicateSurface
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: All All
: P2 enhancement
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-09 15:30 UTC by Rainer Deyke
Modified: 2017-08-14 20:37 UTC (History)
1 user (show)

See Also:


Attachments
The patch. (482 bytes, patch)
2014-03-09 15:30 UTC, Rainer Deyke
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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