changeset 4299:0ca47eaff9c9 SDL-1.2

Changed environment variable to match Debian patch 205_lock_keys.diff
author Sam Lantinga <slouken@libsdl.org>
date Sat, 10 Oct 2009 09:02:17 +0000
parents 7d60c0ac6aae
children 602642738b83
files WhatsNew docs.html src/events/SDL_keyboard.c
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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:
--- 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.
 </P>
 <P>
-	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.
 </P>
 <P>
 	Fixed audio quality problem when converting between 22050 Hz and 44100 Hz.
--- 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: