summary refs log tree commit diff stats
path: root/mazeoflife.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mazeoflife.cpp')
-rw-r--r--mazeoflife.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/mazeoflife.cpp b/mazeoflife.cpp index e962f2e..4ec9250 100644 --- a/mazeoflife.cpp +++ b/mazeoflife.cpp
@@ -1,7 +1,6 @@
1#include "includes.h" 1#include "includes.h"
2 2
3SDL_Surface *screen; 3SDL_Surface *screen;
4bool gameSleep = false;
5State* state; 4State* state;
6 5
7int main(int argc, char *argv[]) 6int main(int argc, char *argv[])
@@ -42,13 +41,6 @@ int main(int argc, char *argv[])
42 { 41 {
43 switch (anEvent.type) 42 switch (anEvent.type)
44 { 43 {
45 case SDL_ACTIVEEVENT:
46 if (anEvent.active.state == SDL_APPINPUTFOCUS)
47 {
48 gameSleep = !anEvent.active.gain;
49 }
50
51 break;
52 case SDL_QUIT: 44 case SDL_QUIT:
53 exit(0); 45 exit(0);
54 46