mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-02-02 18:14:35 +00:00
docs: SDL_INIT_EVERYTHING does not exist anymore
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user