Commit bf7ca0d6 authored by Sam Lantinga's avatar Sam Lantinga

Make the globals static so they're initialized to zero.

parent ca4b8205
...@@ -45,12 +45,12 @@ ...@@ -45,12 +45,12 @@
#define VERBOSE SDL_FALSE #define VERBOSE SDL_FALSE
SDL_Window *window; static SDL_Window *window;
SDL_Event events[EVENT_BUF_SIZE]; static SDL_Event events[EVENT_BUF_SIZE];
int eventWrite; static int eventWrite;
int colors[7] = {0xFF,0xFF00,0xFF0000,0xFFFF00,0x00FFFF,0xFF00FF,0xFFFFFF}; static int colors[7] = {0xFF,0xFF00,0xFF0000,0xFFFF00,0x00FFFF,0xFF00FF,0xFFFFFF};
typedef struct { typedef struct {
float x,y; float x,y;
...@@ -61,7 +61,7 @@ typedef struct { ...@@ -61,7 +61,7 @@ typedef struct {
Point p; Point p;
} Knob; } Knob;
Knob knob; static Knob knob;
void handler (int sig) void handler (int sig)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment