Pārlūkot izejas kodu

REVIEWED: Issue with functions definitions

pull/3445/head
Ray pirms 1 gada
vecāks
revīzija
081fffd46e
7 mainītis faili ar 17 papildinājumiem un 13 dzēšanām
  1. +3
    -2
      src/platforms/rcore_android.c
  2. +2
    -2
      src/platforms/rcore_desktop.c
  3. +3
    -2
      src/platforms/rcore_desktop_sdl.c
  4. +2
    -2
      src/platforms/rcore_drm.c
  5. +2
    -2
      src/platforms/rcore_template.c
  6. +3
    -2
      src/platforms/rcore_web.c
  7. +2
    -1
      src/rcore.c

+ 3
- 2
src/platforms/rcore_android.c Parādīt failu

@ -516,7 +516,7 @@ void PollInputEvents(void)
//----------------------------------------------------------------------------------
// Initialize platform: graphics, inputs and more
static int InitPlatform(void)
int InitPlatform(void)
{
CORE.Window.currentFbo.width = CORE.Window.screen.width;
CORE.Window.currentFbo.height = CORE.Window.screen.height;
@ -589,7 +589,7 @@ static int InitPlatform(void)
}
// Close platform
static void ClosePlatform(void)
void ClosePlatform(void)
{
// Close surface, context and display
if (platform.device != EGL_NO_DISPLAY)
@ -613,6 +613,7 @@ static void ClosePlatform(void)
}
}
// Initialize display device and framebuffer
// 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

+ 2
- 2
src/platforms/rcore_desktop.c Parādīt failu

@ -1214,7 +1214,7 @@ void PollInputEvents(void)
//----------------------------------------------------------------------------------
// Initialize platform: graphics, inputs and more
static int InitPlatform(void)
int InitPlatform(void)
{
glfwSetErrorCallback(ErrorCallback);
/*
@ -1531,7 +1531,7 @@ static int InitPlatform(void)
}
// Close platform
static void ClosePlatform(void)
void ClosePlatform(void)
{
glfwDestroyWindow(platform.handle);
glfwTerminate();

+ 3
- 2
src/platforms/rcore_desktop_sdl.c Parādīt failu

@ -1070,7 +1070,7 @@ void PollInputEvents(void)
//----------------------------------------------------------------------------------
// Initialize platform: graphics, inputs and more
static int InitPlatform(void)
int InitPlatform(void)
{
// Initialize SDL internal global state
int result = SDL_Init(SDL_INIT_EVERYTHING);
@ -1180,7 +1180,7 @@ static int InitPlatform(void)
return 0;
}
static void ClosePlatform(void)
void ClosePlatform(void)
{
SDL_FreeCursor(platform.cursor); // Free cursor
SDL_GL_DeleteContext(platform.glContext); // Deinitialize OpenGL context
@ -1188,6 +1188,7 @@ static void ClosePlatform(void)
SDL_Quit(); // Deinitialize SDL internal global state
}
static KeyboardKey ConvertScancodeToKey(SDL_Scancode sdlScancode)
{
if (sdlScancode >= 0 && sdlScancode < SCANCODE_MAPPED_NUM)

+ 2
- 2
src/platforms/rcore_drm.c Parādīt failu

@ -565,7 +565,7 @@ void PollInputEvents(void)
//----------------------------------------------------------------------------------
// Initialize platform: graphics, inputs and more
static int InitPlatform(void)
int InitPlatform(void)
{
platform.fd = -1;
platform.connector = NULL;
@ -916,7 +916,7 @@ static int InitPlatform(void)
}
// Close platform
static void ClosePlatform(void)
void ClosePlatform(void)
{
if (platform.prevFB)
{

+ 2
- 2
src/platforms/rcore_template.c Parādīt failu

@ -429,7 +429,7 @@ void PollInputEvents(void)
//----------------------------------------------------------------------------------
// Initialize platform: graphics, inputs and more
static int InitPlatform(void)
int InitPlatform(void)
{
CORE.Window.fullscreen = true;
CORE.Window.flags |= FLAG_FULLSCREEN_MODE;
@ -556,7 +556,7 @@ static int InitPlatform(void)
}
// Close platform
static void ClosePlatform(void)
void ClosePlatform(void)
{
// TODO: De-initialize graphics, inputs and more
}

+ 3
- 2
src/platforms/rcore_web.c Parādīt failu

@ -669,7 +669,7 @@ void PollInputEvents(void)
//----------------------------------------------------------------------------------
// Initialize platform: graphics, inputs and more
static int InitPlatform(void)
int InitPlatform(void)
{
glfwSetErrorCallback(ErrorCallback);
@ -932,12 +932,13 @@ static int InitPlatform(void)
}
// Close platform
static void ClosePlatform(void)
void ClosePlatform(void)
{
glfwDestroyWindow(platform.handle);
glfwTerminate();
}
// GLFW3 Error Callback, runs on GLFW3 error
static void ErrorCallback(int error, const char *description)
{

+ 2
- 1
src/rcore.c Parādīt failu

@ -2523,7 +2523,8 @@ int GetTouchPointCount(void)
//----------------------------------------------------------------------------------
// NOTE: Functions with a platform-specific implementation on rcore_<platform>.c
//static bool InitPlatform(void)
//int InitPlatform(void)
//void ClosePlatform(void)
// Initialize hi-resolution timer
void InitTimer(void)

Notiek ielāde…
Atcelt
Saglabāt