mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 15:51:04 +08:00
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:
parent
aaf080368b
commit
d48c7ff18c
Binary file not shown.
@ -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);
|
||||
|
@ -76,9 +76,9 @@ struct ContextSettings
|
||||
/// ContextSettings allows to define several advanced settings
|
||||
/// of the OpenGL context attached to a window. All these
|
||||
/// settings have no impact on the regular SFML rendering
|
||||
/// (graphics module), so you may need to use this structure
|
||||
/// only if you're using SFML as a windowing system for
|
||||
/// custom OpenGL rendering.
|
||||
/// (graphics module) -- except the anti-aliasing level, so
|
||||
/// you may need to use this structure only if you're using
|
||||
/// SFML as a windowing system for custom OpenGL rendering.
|
||||
///
|
||||
/// The DepthBits and StencilBits members define the number
|
||||
/// of bits per pixel requested for the (respectively) depth
|
||||
|
Loading…
Reference in New Issue
Block a user