mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-15 19:05:32 +00:00
Remove SDL_VideoInit / Quit. Prefer SDL_SubSytemInit / Quit (#6913)
This commit is contained in:
@@ -44,7 +44,7 @@ static SDL_Rect *positions, *velocities;
|
||||
static void
|
||||
quit(int rc)
|
||||
{
|
||||
SDL_VideoQuit();
|
||||
SDL_Quit();
|
||||
if (native_window != NULL && factory != NULL) {
|
||||
factory->DestroyNativeWindow(native_window);
|
||||
}
|
||||
@@ -103,7 +103,7 @@ int main(int argc, char *argv[])
|
||||
/* Enable standard application logging */
|
||||
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
|
||||
|
||||
if (SDL_VideoInit(NULL) < 0) {
|
||||
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
|
||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't initialize SDL video: %s\n",
|
||||
SDL_GetError());
|
||||
exit(1);
|
||||
|
||||
Reference in New Issue
Block a user