summaryrefslogtreecommitdiff
path: root/src/PowderToySDL.cpp
diff options
context:
space:
mode:
authorBryan Hoyle <starfoxprime@gmail.com>2012-11-16 21:50:02 (GMT)
committer Bryan Hoyle <starfoxprime@gmail.com>2012-11-16 21:50:02 (GMT)
commitfec50a2a8eb6e83dbf17329f8f8699c7c7b8cd3a (patch)
tree962cc7eba0cd1994f7b01a5a2e6c250da1e84f1a /src/PowderToySDL.cpp
parent4192a5714661dfc9c04552957f3dd36e5c902f37 (diff)
downloadpowder-fec50a2a8eb6e83dbf17329f8f8699c7c7b8cd3a.zip
powder-fec50a2a8eb6e83dbf17329f8f8699c7c7b8cd3a.tar.gz
Opengl fix
Diffstat (limited to 'src/PowderToySDL.cpp')
-rw-r--r--src/PowderToySDL.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/PowderToySDL.cpp b/src/PowderToySDL.cpp
index 74d8bc5..eeff756 100644
--- a/src/PowderToySDL.cpp
+++ b/src/PowderToySDL.cpp
@@ -293,7 +293,7 @@ int elapsedTime = 0, currentTime = 0, lastTime = 0, currentFrame = 0;
unsigned int lastTick = 0;
float fps = 0, delta = 1.0f, inputScale = 1.0f;
ui::Engine * engine = NULL;
-
+float currentWidth, currentHeight;
void EngineProcess()
{
int frameStart;
@@ -416,7 +416,9 @@ void EngineProcess()
int main(int argc, char * argv[])
{
- float currentWidth = XRES+BARSIZE, currentHeight = YRES+MENUSIZE;
+ currentWidth = XRES+BARSIZE;
+ currentHeight = YRES+MENUSIZE;
+
std::map<std::string, std::string> arguments = readArguments(argc, argv);