aboutsummaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-04-07 11:55:38 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-04-07 11:55:38 +0000
commit55726dad18659155342a538b51ed82a1b0fcb291 (patch)
treeb9ea14641eac7463a7baa915da740ea06098bdac /src/base
parent5ccfc5107ed4006fad3253dfd9041a42049a90d4 (diff)
downloadusdx-55726dad18659155342a538b51ed82a1b0fcb291.tar.gz
usdx-55726dad18659155342a538b51ed82a1b0fcb291.tar.xz
usdx-55726dad18659155342a538b51ed82a1b0fcb291.zip
center usdx window
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2222 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/base')
-rw-r--r--src/base/UGraphic.pas3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/base/UGraphic.pas b/src/base/UGraphic.pas
index 45befc46..2b9a16fe 100644
--- a/src/base/UGraphic.pas
+++ b/src/base/UGraphic.pas
@@ -483,6 +483,9 @@ begin
SDL_WM_SetCaption(PChar(Title), nil);
+ { center window }
+ SDL_putenv('SDL_VIDEO_WINDOW_POS=center');
+
//Log.BenchmarkStart(2);
InitializeScreen;