about summary refs log tree commit diff
path: root/src/engine
diff options
context:
space:
mode:
authorAlfred Eriksson <somerunce@gmail.com>2008-11-16 16:09:00 +0000
committerAlfred Eriksson <somerunce@gmail.com>2008-11-16 16:09:00 +0000
commit51314e4576cf61c0ba346a18e4782ff0246ac65c (patch)
tree9cd04bc294a253a1ba048e1bbede07dfafe50378 /src/engine
parent00794899d6b00243b562dad75c717cf210230c11 (diff)
downloadzcatch-51314e4576cf61c0ba346a18e4782ff0246ac65c.tar.gz
zcatch-51314e4576cf61c0ba346a18e4782ff0246ac65c.zip
fixed window positioning for windows
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/client/ec_gfx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/engine/client/ec_gfx.c b/src/engine/client/ec_gfx.c
index dbd4daf7..24848deb 100644
--- a/src/engine/client/ec_gfx.c
+++ b/src/engine/client/ec_gfx.c
@@ -224,6 +224,10 @@ int gfx_init()
 
 	if(!no_gfx)
 	{
+		#ifdef CONF_FAMILY_WINDOWS
+			if(!getenv("SDL_VIDEO_WINDOW_POS") && !getenv("SDL_VIDEO_CENTERED"))
+				putenv("SDL_VIDEO_WINDOW_POS=8,27");
+		#endif
 		do
 		{
 			if(try_init() == 0)