2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-04-05 11:19:39 -04:00

Fix ExportImageToMemory and formatting issues ()

This commit is contained in:
Chris Dill 2024-05-25 08:53:30 +01:00 committed by GitHub
parent 502a583e07
commit 5949934932
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 10 deletions
Raylib-cs

@ -1368,7 +1368,7 @@ public static unsafe partial class Raylib
/// <summary>Export image to memory buffer</summary> /// <summary>Export image to memory buffer</summary>
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern char* ExportImageToMemory(Image image, sbyte* fileType, int *fileSize); public static extern byte* ExportImageToMemory(Image image, sbyte* fileType, int* fileSize);
/// <summary>Export image as code file defining an array of bytes</summary> /// <summary>Export image as code file defining an array of bytes</summary>
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]

@ -48,7 +48,10 @@ public partial struct Rectangle
public Vector2 Position public Vector2 Position
{ {
readonly get { return new Vector2(X,Y); } readonly get
{
return new Vector2(X, Y);
}
set set
{ {
X = value.X; X = value.X;
@ -58,7 +61,10 @@ public partial struct Rectangle
public Vector2 Size public Vector2 Size
{ {
readonly get { return new Vector2(Width,Height); } readonly get
{
return new Vector2(Width, Height);
}
set set
{ {
Width = value.X; Width = value.X;