diff options
| author | ubkp <[email protected]> | 2023-10-29 12:23:38 -0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-29 16:23:38 +0100 |
| commit | 01c264123d7bb12d166069a7f5c7403e98e51cfe (patch) | |
| tree | af68becac6b607c0ab9df29f01de55f0a7185564 /src/platforms/rcore_desktop_sdl.c | |
| parent | effa3ee249ed393fb7b283092c4023e919be3061 (diff) | |
| download | raylib-01c264123d7bb12d166069a7f5c7403e98e51cfe.tar.gz raylib-01c264123d7bb12d166069a7f5c7403e98e51cfe.zip | |
Remove rcore.h include from SDL (#3475)
Diffstat (limited to 'src/platforms/rcore_desktop_sdl.c')
| -rw-r--r-- | src/platforms/rcore_desktop_sdl.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/platforms/rcore_desktop_sdl.c b/src/platforms/rcore_desktop_sdl.c index 8543c751..566d75d8 100644 --- a/src/platforms/rcore_desktop_sdl.c +++ b/src/platforms/rcore_desktop_sdl.c @@ -49,8 +49,6 @@ * **********************************************************************************************/ -#include "rcore.h" - #include "SDL.h" // SDL base library (window/rendered, input, timming... functionality) #include "SDL_opengl.h" // SDL OpenGL functionality (if required, instead of internal renderer) @@ -998,7 +996,7 @@ void PollInputEvents(void) switch (event.type) { case SDL_QUIT: CORE.Window.shouldClose = true; break; - + case SDL_DROPFILE: // Dropped file { if (CORE.Window.dropFileCount == 0) @@ -1019,7 +1017,7 @@ void PollInputEvents(void) CORE.Window.dropFilepaths[CORE.Window.dropFileCount] = (char *)RL_CALLOC(MAX_FILEPATH_LENGTH, sizeof(char)); strcpy(CORE.Window.dropFilepaths[CORE.Window.dropFileCount], event.drop.file); SDL_free(event.drop.file); - + CORE.Window.dropFileCount++; } else TRACELOG(LOG_WARNING, "FILE: Maximum drag and drop files at once is limited to 1024 files!"); @@ -1274,7 +1272,7 @@ int InitPlatform(void) SDL_Joystick *gamepad = SDL_JoystickOpen(0); //if (SDL_Joystick *gamepad == NULL) SDL_Log("WARNING: Unable to open game controller! SDL Error: %s\n", SDL_GetError()); } - + SDL_EventState(SDL_DROPFILE, SDL_ENABLE); //---------------------------------------------------------------------------- |
