浏览代码

Fix some omissions (#3418)

Changes the return type of `InitGraphicsDevice()` from `bool` to `int`.
Adds a return at the end of `InitPlatform()`.
pull/3422/head
Le Juez Victor 1年前
committed by GitHub
父节点
当前提交
6d7112fde7
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      src/rcore_android.c

+ 3
- 1
src/rcore_android.c 查看文件

@ -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;

正在加载...
取消
保存