diff options
author | David 'Digit' Turner <digit@google.com> | 2009-06-04 16:07:01 +0200 |
---|---|---|
committer | David 'Digit' Turner <digit@google.com> | 2009-06-08 17:43:17 +0200 |
commit | 46be48730333120a7b939116cef075e61c12c703 (patch) | |
tree | 92bde033dd93fc14e0e2565a52293b59787b8859 /distrib/sdl-1.2.12/src/video/fbcon/out | |
parent | b72269abe4a75736c09b0ee8797b736f49c058c8 (diff) | |
download | external_qemu-46be48730333120a7b939116cef075e61c12c703.zip external_qemu-46be48730333120a7b939116cef075e61c12c703.tar.gz external_qemu-46be48730333120a7b939116cef075e61c12c703.tar.bz2 |
Add our modified SDL sources under distrib/sdl-1.2.12
Fix distrib/make-distrib.sh script to work with git
Fix distrib/build-emulator.sh to accomodate for new SDL configure script
Handle Tiger SDK usage in SDL configure script
Diffstat (limited to 'distrib/sdl-1.2.12/src/video/fbcon/out')
-rw-r--r-- | distrib/sdl-1.2.12/src/video/fbcon/out | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/distrib/sdl-1.2.12/src/video/fbcon/out b/distrib/sdl-1.2.12/src/video/fbcon/out new file mode 100644 index 0000000..1af0645 --- /dev/null +++ b/distrib/sdl-1.2.12/src/video/fbcon/out @@ -0,0 +1,29 @@ +Index: SDL_fbevents.c +=================================================================== +--- SDL_fbevents.c (revision 2338) ++++ SDL_fbevents.c (working copy) +@@ -55,6 +55,7 @@ + #define GPM_NODE_FIFO "/dev/gpmdata" + #endif + ++/*#define DEBUG_KEYBOARD*/ + /*#define DEBUG_MOUSE*/ + + /* The translation tables from a console scancode to a SDL keysym */ +@@ -281,8 +282,15 @@ + } + if ( keyboard_fd < 0 ) { + /* Last resort, maybe our tty is a usable VT */ +- current_vt = 0; ++ struct vt_stat vtstate; ++ + keyboard_fd = open("/dev/tty", O_RDWR); ++ ++ if ( ioctl(keyboard_fd, VT_GETSTATE, &vtstate) == 0 ) { ++ current_vt = vtstate.v_active; ++ } else { ++ current_vt = 0; ++ } + } + #ifdef DEBUG_KEYBOARD + fprintf(stderr, "Current VT: %d\n", current_vt); |