From 51314e4576cf61c0ba346a18e4782ff0246ac65c Mon Sep 17 00:00:00 2001 From: Alfred Eriksson Date: Sun, 16 Nov 2008 16:09:00 +0000 Subject: fixed window positioning for windows --- src/engine/client/ec_gfx.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/engine/client/ec_gfx.c') 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) -- cgit 1.4.1