]> git.jsancho.org Git - lugaru.git/commitdiff
Implemented isFocused().
authorRyan C. Gordon <icculus@icculus.org>
Fri, 14 May 2010 04:46:59 +0000 (00:46 -0400)
committerRyan C. Gordon <icculus@icculus.org>
Fri, 14 May 2010 04:46:59 +0000 (00:46 -0400)
Source/OpenGL_Windows.cpp

index e112066ebb79df5d3c0946be2b206cc709278283..c1eae17bf7b101a5e3e084e3ad54af8c167ec17b 100644 (file)
@@ -1187,13 +1187,9 @@ void CleanUp (void)
 
 // --------------------------------------------------------------------------
 
-static bool g_focused = true;
-
-
 static bool IsFocused()
 {
-    STUBBED("write me");
-       return true;
+    return ((SDL_GetAppState() & SDL_APPINPUTFOCUS) != 0);
 }