undo change

This commit is contained in:
ColleagueRiley 2024-12-24 15:07:19 -05:00
parent e21aa1ed88
commit 15135bbd95

View File

@ -687,6 +687,14 @@ const char *GetClipboardText(void)
#endif
#endif
// Get clipboard image
Image GetClipboardImage(void)
{
Image image = { 0 };
unsigned long long int dataSize = 0;
void *fileData = NULL;
#if defined(SUPPORT_CLIPBOARD_IMAGE)
// Get clipboard image
Image GetClipboardImage(void)
{
@ -705,18 +713,10 @@ Image GetClipboardImage(void)
#else
TRACELOG(LOG_WARNING, "Clipboard image: PLATFORM_DESKTOP_RGFW doesn't implement GetClipboardImage() for this OS");
#endif
#endif // SUPPORT_CLIPBOARD_IMAGE
if (fileData == NULL)
{
TRACELOG(LOG_WARNING, "Clipboard image: Couldn't get clipboard data.");
}
else
{
image = LoadImageFromMemory(".bmp", fileData, dataSize);
}
return image;
}
#endif // SUPPORT_CLIPBOARD_IMAGE
// Show mouse cursor
void ShowCursor(void)