Fix some omissions (#3418)

Changes the return type of `InitGraphicsDevice()` from `bool` to `int`.
Adds a return at the end of `InitPlatform()`.
This commit is contained in:
Le Juez Victor 2023-10-14 22:46:46 +02:00 committed by GitHub
parent 37e3ffcaac
commit 6d7112fde7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -676,6 +676,8 @@ static int InitPlatform(void)
//if (platform.app->destroyRequested != 0) CORE.Window.shouldClose = true;
}
}
return 0;
}
// Close platform
@ -707,7 +709,7 @@ static void ClosePlatform(void)
// NOTE: width and height represent the screen (framebuffer) desired size, not actual display size
// If width or height are 0, default display size will be used for framebuffer size
// NOTE: returns false in case graphic device could not be created
static bool InitGraphicsDevice(void)
static int InitGraphicsDevice(void)
{
CORE.Window.fullscreen = true;
CORE.Window.flags |= FLAG_FULLSCREEN_MODE;