2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-06-30 19:03:42 -04:00

Fixed LoadImageAnim frames argument. (#119)

This commit is contained in:
Diogo Gomes
2022-08-24 17:50:30 +01:00
committed by GitHub
parent 737062763d
commit 0ea640acaa

View File

@ -106,10 +106,10 @@ namespace Raylib_cs
} }
/// <summary>Load image sequence from file (frames appended to image.data)</summary> /// <summary>Load image sequence from file (frames appended to image.data)</summary>
public static Image LoadImageAnim(string fileName, int[] frames) public static Image LoadImageAnim(string fileName, out int frames)
{ {
using var str1 = fileName.ToUTF8Buffer(); using var str1 = fileName.ToUTF8Buffer();
fixed (int* p = frames) fixed (int* p = &frames)
{ {
return LoadImageAnim(str1.AsPointer(), p); return LoadImageAnim(str1.AsPointer(), p);
} }