Code cleanup

This commit is contained in:
Dimitris Panokostas 2017-03-01 00:49:56 +01:00
parent 0c3db15f4a
commit c080cbc15a
3 changed files with 198 additions and 207 deletions

View file

@ -985,9 +985,15 @@ static int real_main2 (int argc, TCHAR **argv)
{
printf("Amiberry-SDL2 by Dimitris (MiDWaN) Panokostas\n");
SDL_SetHint(SDL_HINT_GRAB_KEYBOARD, "1");
SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengles2");
SDL_bool hintSet;
hintSet = SDL_SetHint(SDL_HINT_GRAB_KEYBOARD, "1");
if (hintSet != SDL_TRUE)
SDL_Log("SDL could not grab the keyboard");
hintSet = SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengles2");
if (hintSet != SDL_TRUE)
SDL_Log("SDL could not set OpenGLES 2 as the Render driver");
if (SDL_Init(SDL_INIT_EVERYTHING) != 0)
{
SDL_Log("SDL could not initialize! SDL_Error: %s\n", SDL_GetError());