# HG changeset patch
# User Sam Lantinga
# Date 1255165337 0
# Node ID 0ca47eaff9c9e7e2aa2a6dcdd4ac36bbd52066bf
# Parent 7d60c0ac6aae2638429c3b8b5b8ce3e08014dc12
Changed environment variable to match Debian patch 205_lock_keys.diff
diff -r 7d60c0ac6aae -r 0ca47eaff9c9 WhatsNew
--- a/WhatsNew Sat Oct 10 08:59:28 2009 +0000
+++ b/WhatsNew Sat Oct 10 09:02:17 2009 +0000
@@ -8,7 +8,7 @@
SDL_reinterpret_cast(type, expression)
SDL_static_cast(type, expression)
- Added SDL_NO_LOCK_KEYS environment variable to enable normal
+ Added SDL_DISABLE_LOCK_KEYS environment variable to enable normal
up/down events for Caps-Lock and Num-Lock keys.
1.2.13:
diff -r 7d60c0ac6aae -r 0ca47eaff9c9 docs.html
--- a/docs.html Sat Oct 10 08:59:28 2009 +0000
+++ b/docs.html Sat Oct 10 09:02:17 2009 +0000
@@ -34,7 +34,7 @@
Fixed freeze in SDL_memset() with 0 length when assembly code is disabled.
- Added SDL_NO_LOCK_KEYS environment variable to enable normal up/down events for Caps-Lock and Num-Lock keys.
+ Added SDL_DISABLE_LOCK_KEYS environment variable to enable normal up/down events for Caps-Lock and Num-Lock keys.
Fixed audio quality problem when converting between 22050 Hz and 44100 Hz.
diff -r 7d60c0ac6aae -r 0ca47eaff9c9 src/events/SDL_keyboard.c
--- a/src/events/SDL_keyboard.c Sat Oct 10 08:59:28 2009 +0000
+++ b/src/events/SDL_keyboard.c Sat Oct 10 09:02:17 2009 +0000
@@ -73,8 +73,8 @@
SDL_EnableKeyRepeat(0, 0);
/* Allow environment override to disable special lock-key behavior */
- env = SDL_getenv("SDL_NO_LOCK_KEYS");
SDL_NoLockKeys = 0;
+ env = SDL_getenv("SDL_DISABLE_LOCK_KEYS");
if (env) {
switch (SDL_atoi(env)) {
case 1: