Fixed a bug with Image.Copy in SFML.Net (was calling the wrong CSFML function)

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1521 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2010-05-21 19:13:50 +00:00
parent aaf080368b
commit d48c7ff18c
3 changed files with 6 additions and 6 deletions

View file

@ -178,7 +178,7 @@ namespace SFML
////////////////////////////////////////////////////////////
public void Copy(Image source, uint destX, uint destY)
{
sfImage_Copy(This, source.This, destX, destY, new IntRect(0, 0, 0, 0));
Copy(source, destX, destY, new IntRect(0, 0, 0, 0));
}
////////////////////////////////////////////////////////////
@ -194,7 +194,7 @@ namespace SFML
////////////////////////////////////////////////////////////
public void Copy(Image source, uint destX, uint destY, IntRect sourceRect)
{
sfImage_Copy(This, source.This, destX, destY, sourceRect);
sfImage_CopyImage(This, source.This, destX, destY, sourceRect);
}
////////////////////////////////////////////////////////////
@ -414,7 +414,7 @@ namespace SFML
static extern bool sfImage_CopyScreen(IntPtr This, IntPtr Window, IntRect SourceRect);
[DllImport("csfml-graphics", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
static extern void sfImage_Copy(IntPtr This, IntPtr Source, uint DestX, uint DestY, IntRect SourceRect);
static extern void sfImage_CopyImage(IntPtr This, IntPtr Source, uint DestX, uint DestY, IntRect SourceRect);
[DllImport("csfml-graphics", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
static extern void sfImage_SetPixel(IntPtr This, uint X, uint Y, Color Col);