Skip to content

Commit

Permalink
Fix some omissions (#3418)
Browse files Browse the repository at this point in the history
Changes the return type of `InitGraphicsDevice()` from `bool` to `int`.
Adds a return at the end of `InitPlatform()`.
  • Loading branch information
Bigfoot71 authored Oct 14, 2023
1 parent 37e3ffc commit 6d7112f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rcore_android.c
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,8 @@ static int InitPlatform(void)
//if (platform.app->destroyRequested != 0) CORE.Window.shouldClose = true;
}
}

return 0;
}

// Close platform
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 6d7112f

Please sign in to comment.