# HG changeset patch # User Sam Lantinga # Date 1282505734 25200 # Node ID 833a225613e22cbce8bf0f53321c45cabe64a2dd # Parent 1f7ad083fd3c7f3e6836a1273ab2abaaffedacd8 Cleanup from the Android commit diff -r 1f7ad083fd3c -r 833a225613e2 src/SDL_compat.c --- a/src/SDL_compat.c Sun Aug 22 12:23:55 2010 -0700 +++ b/src/SDL_compat.c Sun Aug 22 12:35:34 2010 -0700 @@ -639,29 +639,18 @@ /* If we're in OpenGL mode, just create a stub surface and we're done! */ if (flags & SDL_OPENGL) { - - printf("1\n"); - SDL_VideoContext = SDL_GL_CreateContext(SDL_VideoWindow); if (!SDL_VideoContext) { return NULL; } - - - printf("2\n"); - if (SDL_GL_MakeCurrent(SDL_VideoWindow, SDL_VideoContext) < 0) { return NULL; } - - printf("3\n"); SDL_VideoSurface = SDL_CreateRGBSurfaceFrom(NULL, width, height, bpp, 0, 0, 0, 0, 0); if (!SDL_VideoSurface) { return NULL; } - - printf("4\n"); SDL_VideoSurface->flags |= surface_flags; SDL_PublicSurface = SDL_VideoSurface; return SDL_PublicSurface; diff -r 1f7ad083fd3c -r 833a225613e2 src/events/SDL_keyboard.c --- a/src/events/SDL_keyboard.c Sun Aug 22 12:23:55 2010 -0700 +++ b/src/events/SDL_keyboard.c Sun Aug 22 12:35:34 2010 -0700 @@ -729,7 +729,7 @@ break; default: /* Invalid state -- bail */ - return 2; + return 0; } /* Drop events that don't change state */ @@ -738,14 +738,14 @@ #if 0 printf("Keyboard event didn't change state - dropped!\n"); #endif - return 3; + return 0; } /* Update internal keyboard state */ keyboard->keystate[scancode] = state; /* Post the event, if desired */ - posted = 4; + posted = 0; if (SDL_GetEventState(type) == SDL_ENABLE) { SDL_Event event; event.key.type = type;