Clean up.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user