docs: SDL_INIT_EVERYTHING does not exist anymore

This commit is contained in:
Anonymous Maarten 2024-02-21 00:52:04 +01:00
parent 7eca84d57e
commit 58e6eacf97
1 changed files with 6 additions and 1 deletions

View File

@ -275,9 +275,13 @@ file(WRITE main.c [===========================================[
/* START of source modifications */
#include <SDL3/SDL.h>
#include <SDL3/SDL_main.h>
int main(int argc, char *argv[]) {
if (SDL_Init(SDL_INIT_EVERYTHING) < 0) {
(void)argc;
(void)argv;
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
SDL_Log("SDL_Init failed (%s)", SDL_GetError());
return 1;
}
@ -314,6 +318,7 @@ int main(int argc, char *argv[]) {
SDL_DestroyWindow(window);
SDL_Quit();
return 0;
}
/* END of source modifications */