mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-06 18:06:28 +00:00
Swap the two parameters
This commit is contained in:
@@ -554,7 +554,7 @@ void UpdateTexture(Texture2D texture, const void *pixels)
|
||||
}
|
||||
|
||||
// Save image to a PNG file
|
||||
void SaveImageAs(Image image, const char *fileName)
|
||||
void SaveImageAs(const char* fileName, Image image)
|
||||
{
|
||||
#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_RPI)
|
||||
unsigned char* imgData = (unsigned char*)GetImageData(image); // this works since Color is just a container for the RGBA values
|
||||
|
Reference in New Issue
Block a user