# HG changeset patch # User Sam Lantinga # Date 1147066215 0 # Node ID 67fc81efcfc34a02e3d0f16ac04e67215b235af8 # Parent e28233f37f8c5a8a4251256aa2134025a5c1c46d Made it easier to test some things on the framebuffer console diff -r e28233f37f8c -r 67fc81efcfc3 test/testalpha.c --- a/test/testalpha.c Mon May 08 05:17:10 2006 +0000 +++ b/test/testalpha.c Mon May 08 05:30:15 2006 +0000 @@ -505,7 +505,10 @@ } break; case SDL_KEYDOWN: - /* Any keypress quits the app... */ + if ( event.key.keysym.sym == SDLK_ESCAPE ) { + done = 1; + } + break; case SDL_QUIT: done = 1; break; diff -r e28233f37f8c -r 67fc81efcfc3 test/testwm.c --- a/test/testwm.c Mon May 08 05:17:10 2006 +0000 +++ b/test/testwm.c Mon May 08 05:30:15 2006 +0000 @@ -180,10 +180,10 @@ event->active.gain ? "gained" : "lost"); if ( event->active.state & SDL_APPACTIVE ) printf("active "); + if ( event->active.state & SDL_APPINPUTFOCUS ) + printf("input "); if ( event->active.state & SDL_APPMOUSEFOCUS ) printf("mouse "); - if ( event->active.state & SDL_APPINPUTFOCUS ) - printf("input "); printf("focus\n"); /* See if we are iconified or restored */