projects
/
traingame.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35512fe
)
Remove screen update thread: maybe this has something todo with XIO problem
author
Nick Gasson <nick@nickg.me.uk>
Fri, 24 Apr 2009 19:27:31 +0000
(20:27 +0100)
committer
Nick Gasson <nick@nickg.me.uk>
Fri, 24 Apr 2009 19:27:31 +0000
(20:27 +0100)
src/SDLWindow.cpp
patch
|
blob
|
history
diff --git
a/src/SDLWindow.cpp
b/src/SDLWindow.cpp
index e3e75fbfee0586d54f8cc1e01f0f917c9058472a..c49145c275020972f5a1450f2c47175e630862ea 100644
(file)
--- a/
src/SDLWindow.cpp
+++ b/
src/SDLWindow.cpp
@@
-162,7
+162,7
@@
void SDLWindow::run(IScreenPtr aScreen)
const unsigned targetFramerate = 30;
const unsigned window = 1000 / targetFramerate;
- SDL_TimerID fpsTimer = SDL_AddTimer(1000, updateFPS, NULL);
+
//
SDL_TimerID fpsTimer = SDL_AddTimer(1000, updateFPS, NULL);
amRunning = true;
do {
@@
-194,8
+194,8
@@
void SDLWindow::run(IScreenPtr aScreen)
frameComplete();
} while (amRunning);
- SDL_RemoveTimer(fpsTimer);
-
+
//
SDL_RemoveTimer(fpsTimer);
+
myScreen.reset();
}