Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
bf7ca0d6
Commit
bf7ca0d6
authored
Mar 09, 2011
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the globals static so they're initialized to zero.
parent
ca4b8205
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
testgesture.c
test/testgesture.c
+5
-5
No files found.
test/testgesture.c
View file @
bf7ca0d6
...
...
@@ -45,12 +45,12 @@
#define VERBOSE SDL_FALSE
SDL_Window
*
window
;
SDL_Event
events
[
EVENT_BUF_SIZE
];
int
eventWrite
;
static
SDL_Window
*
window
;
static
SDL_Event
events
[
EVENT_BUF_SIZE
];
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
{
float
x
,
y
;
...
...
@@ -61,7 +61,7 @@ typedef struct {
Point
p
;
}
Knob
;
Knob
knob
;
static
Knob
knob
;
void
handler
(
int
sig
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment