소스 검색

Add reset for GetFrameTime()

pull/4598/head
asdqwe 16 시간 전
부모
커밋
c8f0f7c47d
2개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. +6
    -1
      src/platforms/rcore_desktop_glfw.c
  2. +2
    -0
      src/platforms/rcore_desktop_sdl.c

+ 6
- 1
src/platforms/rcore_desktop_glfw.c 파일 보기

@ -1739,7 +1739,12 @@ static void WindowContentScaleCallback(GLFWwindow *window, float scalex, float s
static void WindowIconifyCallback(GLFWwindow *window, int iconified)
{
if (iconified) CORE.Window.flags |= FLAG_WINDOW_MINIMIZED; // The window was iconified
else CORE.Window.flags &= ~FLAG_WINDOW_MINIMIZED; // The window was restored
else
{
CORE.Window.flags &= ~FLAG_WINDOW_MINIMIZED; // The window was restored
if ((CORE.Window.flags & FLAG_WINDOW_ALWAYS_RUN) == 0) CORE.Time.previous = GetTime();
}
}
// GLFW3 WindowMaximize Callback, runs when window is maximized/restored

+ 2
- 0
src/platforms/rcore_desktop_sdl.c 파일 보기

@ -1499,6 +1499,8 @@ void PollInputEvents(void)
if ((CORE.Window.flags & SDL_WINDOW_MAXIMIZED) > 0) CORE.Window.flags &= ~SDL_WINDOW_MAXIMIZED;
}
#endif
if ((CORE.Window.flags & FLAG_WINDOW_ALWAYS_RUN) == 0) CORE.Time.previous = GetTime();
} break;
case SDL_WINDOWEVENT_HIDDEN:

불러오는 중...
취소
저장