Added SDL_CleanupEvent()

This is used to free any dynamically allocated memory in events.
This commit is contained in:
Sam Lantinga committed 2023-11-04 06:47:24 -07:00
1 parent c4bf05fd9d
commit 7e445da569
20 files changed
+146 -232

No files matched your search

-3
View File
@@ -265,9 +265,6 @@ int main(int argc, char *argv[])
return 1;
}
SDL_SetEventEnabled(SDL_EVENT_DROP_FILE, SDL_TRUE);
SDL_SetEventEnabled(SDL_EVENT_DROP_TEXT, SDL_TRUE);
for (i = 0; i < state->num_windows; ++i) {
SDL_Renderer *renderer = state->renderers[i];
SDL_SetRenderDrawColor(renderer, 0xA0, 0xA0, 0xA0, 0xFF);