Skip to content
This repository has been archived by the owner on Sep 7, 2019. It is now read-only.

Fix Surface ctors which use other surfaces #5

Open
KadinTucker opened this issue Aug 14, 2018 · 0 comments
Open

Fix Surface ctors which use other surfaces #5

KadinTucker opened this issue Aug 14, 2018 · 0 comments

Comments

@KadinTucker
Copy link
Collaborator

Surfaces constructed using the overloads taking in other surfaces, https://github.com/SaurabhTotey/d2d/blob/master/source/d2d/sdl2/Surface.d#L143-L157 and https://github.com/SaurabhTotey/d2d/blob/master/source/d2d/sdl2/Surface.d#L167-L172, do not work as intended as rather than creating a copy of the surface they use the same surface as passed by reference. This should be fixed so that copying surfaces is a possibility.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant