Clean up.

This commit is contained in:
2026-03-31 22:05:40 -07:00
parent 165ba90102
commit 34727294b7
3 changed files with 40 additions and 86 deletions
+4
View File
@@ -712,6 +712,8 @@ S32 main(S32 argc, char *argv[])
SDL_Renderer *Renderer;
Renderer = SDL_CreateRenderer(Window, -1, SDL_RENDERER_PRESENTVSYNC);
SDL_SetWindowPosition(Window, 900, 300); /* TODO: Check that this
works on Linux. */
/* "Wayland needs an event loop and rendering or it won't function."
* https://github.com/libsdl-org/SDL/issues/7699#issuecomment-1545684792 */
/* NOTE: This means that we need to readraw to even resize the
@@ -821,6 +823,8 @@ S32 main(S32 argc, char *argv[])
OldInput = &Input[1];
memset(&Input, 0, sizeof(Input));
NewInput->SecondsToAdvanceOverUpdate = TargetSecondsPerFrame;
GlobalPerfCountFrequency = SDL_GetPerformanceFrequency();
Game = SDLLoadGameCode(SDLState.DLLPath);