diff src/events/SDL_windowevents.c @ 1734:f7c667ded87d SDL-1.3

The general code handles restoring video mode/gamma/etc. when the window loses focus. Support for changing fullscreen/windowed mode in progress.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 09 Jul 2006 18:09:16 +0000
parents 0b1070f2f94d
children
line wrap: on
line diff
--- a/src/events/SDL_windowevents.c	Sun Jul 09 09:02:26 2006 +0000
+++ b/src/events/SDL_windowevents.c	Sun Jul 09 18:09:16 2006 +0000
@@ -100,17 +100,17 @@
         window->flags &= ~SDL_WINDOW_MOUSE_FOCUS;
         break;
     case SDL_WINDOWEVENT_FOCUS_GAINED:
-        if (window->flags & SDL_WINDOW_KEYBOARD_FOCUS) {
+        if (window->flags & SDL_WINDOW_INPUT_FOCUS) {
             return 0;
         }
-        window->flags |= SDL_WINDOW_KEYBOARD_FOCUS;
+        window->flags |= SDL_WINDOW_INPUT_FOCUS;
         SDL_OnWindowFocusGained(window);
         break;
     case SDL_WINDOWEVENT_FOCUS_LOST:
-        if (!(window->flags & SDL_WINDOW_KEYBOARD_FOCUS)) {
+        if (!(window->flags & SDL_WINDOW_INPUT_FOCUS)) {
             return 0;
         }
-        window->flags &= ~SDL_WINDOW_KEYBOARD_FOCUS;
+        window->flags &= ~SDL_WINDOW_INPUT_FOCUS;
         SDL_OnWindowFocusLost(window);
         break;
     }