Skip to content

Commit

Permalink
Disable drag&drop events
Browse files Browse the repository at this point in the history
  • Loading branch information
albertvaka committed Nov 24, 2024
1 parent 718cf41 commit 492df9e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions engine/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ namespace Window
GPU_Flip(screenTarget);
Clear(0, 0, 0);

// Disable drag&drop events that require manually freeing the "file" string in SDL2
SDL_EventState(SDL_DROPFILE, SDL_DISABLE);
SDL_EventState(SDL_DROPTEXT, SDL_DISABLE);
SDL_EventState(SDL_DROPBEGIN, SDL_DISABLE);
SDL_EventState(SDL_DROPCOMPLETE, SDL_DISABLE);

return 0;
}

Expand Down

0 comments on commit 492df9e

Please sign in to comment.