about summary refs log tree commit diff
path: root/src/engine/client/gfx.cpp
diff options
context:
space:
mode:
authorJohan Althoff <teetow@gmail.com>2007-08-07 18:28:51 +0000
committerJohan Althoff <teetow@gmail.com>2007-08-07 18:28:51 +0000
commit0c7e1fc6abef36bf41504fcae730b361d515c606 (patch)
tree0fffb8bdf3af6bc301dce339dc07e65d98590dff /src/engine/client/gfx.cpp
parentf38f0f49d54f124ed385c609789bf834bbfde6cb (diff)
downloadzcatch-0c7e1fc6abef36bf41504fcae730b361d515c606.tar.gz
zcatch-0c7e1fc6abef36bf41504fcae730b361d515c606.zip
fixed window focusing stuff, much better now.
Diffstat (limited to 'src/engine/client/gfx.cpp')
-rw-r--r--src/engine/client/gfx.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/engine/client/gfx.cpp b/src/engine/client/gfx.cpp
index 1e11bb04..1c871e28 100644
--- a/src/engine/client/gfx.cpp
+++ b/src/engine/client/gfx.cpp
@@ -213,6 +213,11 @@ bool gfx_init()
 }
 
 
+int gfx_window_active()
+{
+	return context.active()?1:0;
+}
+
 
 video_mode fakemodes[] = {
 	{320,240,8,8,8}, {400,300,8,8,8}, {640,480,8,8,8},