summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLe Juez Victor <[email protected]>2023-10-14 22:46:46 +0200
committerGitHub <[email protected]>2023-10-14 22:46:46 +0200
commit6d7112fde7ee2f3372f7cdc95a9f474328973cdc (patch)
treeb662feeaf2f7a41dece900402bbbfb2fe31be0d1
parent37e3ffcaac9be9c07a9724b334d9bca3ec8b7052 (diff)
downloadraylib-6d7112fde7ee2f3372f7cdc95a9f474328973cdc.tar.gz
raylib-6d7112fde7ee2f3372f7cdc95a9f474328973cdc.zip
Fix some omissions (#3418)
Changes the return type of `InitGraphicsDevice()` from `bool` to `int`. Adds a return at the end of `InitPlatform()`.
-rw-r--r--src/rcore_android.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rcore_android.c b/src/rcore_android.c
index b7680adb..4dc0e26c 100644
--- a/src/rcore_android.c
+++ b/src/rcore_android.c
@@ -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;