diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-21 22:48:37 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-21 22:48:37 (GMT) |
| commit | dea70befcf770a767f1cbeecdd149930f6d4c0b8 (patch) | |
| tree | d7262fed954074b5f60b2a75307ff50c8038c25d /src/interface/Engine.cpp | |
| parent | 984d39f8cc6e2fd54c1a1b4aa217334f04a5e479 (diff) | |
| download | powder-dea70befcf770a767f1cbeecdd149930f6d4c0b8.zip powder-dea70befcf770a767f1cbeecdd149930f6d4c0b8.tar.gz | |
Basic skeleton for save preview
Diffstat (limited to 'src/interface/Engine.cpp')
| -rw-r--r-- | src/interface/Engine.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/interface/Engine.cpp b/src/interface/Engine.cpp index 6f81f56..19da36e 100644 --- a/src/interface/Engine.cpp +++ b/src/interface/Engine.cpp @@ -51,6 +51,14 @@ void Engine::Exit() void Engine::ShowWindow(Window * window) { + if(window->Position.X==-1) + { + window->Position.X = (width_-window->Size.X)/2; + } + if(window->Position.Y==-1) + { + window->Position.Y = (height_-window->Size.Y)/2; + } if(state_) { windows.push(state_); |
