Crash when copying and pasting in several editors (sprite, map editor) #558
This commit is contained in:
@@ -517,6 +517,11 @@ static char* getClipboardText()
|
||||
return SDL_GetClipboardText();
|
||||
}
|
||||
|
||||
static void freeClipboardText(const char* text)
|
||||
{
|
||||
SDL_free((void*)text);
|
||||
}
|
||||
|
||||
static u64 getPerformanceCounter()
|
||||
{
|
||||
return SDL_GetPerformanceCounter();
|
||||
@@ -599,6 +604,8 @@ static System systemInterface =
|
||||
.setClipboardText = setClipboardText,
|
||||
.hasClipboardText = hasClipboardText,
|
||||
.getClipboardText = getClipboardText,
|
||||
.freeClipboardText = freeClipboardText,
|
||||
|
||||
.getPerformanceCounter = getPerformanceCounter,
|
||||
.getPerformanceFrequency = getPerformanceFrequency,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user