mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 03:26:15 +08: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 */
|
/* START of source modifications */
|
||||||
|
|
||||||
#include <SDL3/SDL.h>
|
#include <SDL3/SDL.h>
|
||||||
|
#include <SDL3/SDL_main.h>
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
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());
|
SDL_Log("SDL_Init failed (%s)", SDL_GetError());
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@@ -314,6 +318,7 @@ int main(int argc, char *argv[]) {
|
|||||||
SDL_DestroyWindow(window);
|
SDL_DestroyWindow(window);
|
||||||
|
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* END of source modifications */
|
/* END of source modifications */
|
||||||
|
|||||||
Reference in New Issue
Block a user