mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-05 09:26:26 +00:00
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:
@@ -676,6 +676,8 @@ static int InitPlatform(void)
|
|||||||
//if (platform.app->destroyRequested != 0) CORE.Window.shouldClose = true;
|
//if (platform.app->destroyRequested != 0) CORE.Window.shouldClose = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close platform
|
// Close platform
|
||||||
@@ -707,7 +709,7 @@ static void ClosePlatform(void)
|
|||||||
// NOTE: width and height represent the screen (framebuffer) desired size, not actual display size
|
// 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
|
// 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
|
// 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.fullscreen = true;
|
||||||
CORE.Window.flags |= FLAG_FULLSCREEN_MODE;
|
CORE.Window.flags |= FLAG_FULLSCREEN_MODE;
|
||||||
|
Reference in New Issue
Block a user