Cleanup sdlmain.cpp

Remove unused global variables, rewrite internal functions, remove `-game_checksum` cmdline option.
This commit is contained in:
Azamat H. Hackimov
2024-08-20 00:30:25 +03:00
parent c6ab519652
commit 30f8fefa0b
2 changed files with 75 additions and 98 deletions

View File

@@ -379,7 +379,8 @@ int opengl_Setup(oeApplication *app, const int *width, const int *height) {
gl_library[0] = 0;
}
mprintf(0, "OpenGL: Attempting to use \"%s\" for OpenGL\n", gl_library[0] ? gl_library : "[system default library]");
LOG_INFO.printf("OpenGL: Attempting to use \"%s\" for OpenGL",
gl_library[0] ? gl_library : "[system default library]");
// ryan's adds. 04/18/2000...SDL stuff on 04/25/2000
bool success = true;
@@ -516,7 +517,7 @@ int opengl_Setup(oeApplication *app, const int *width, const int *height) {
Uint16 ramp[256];
SDL_CalculateGammaRamp(Render_preferred_state.gamma, ramp);
SDL_SetWindowGammaRamp(GSDLWindow, ramp, ramp, ramp);
} // else
}
if (ParentApplication) {
reinterpret_cast<oeLnxApplication *>(ParentApplication)->set_sizepos(0, 0, *width, *height);