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
18f2ccec
Commit
18f2ccec
authored
Jan 02, 2011
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a typedef instead of a #define, to handle syntax like: SDL_TextureID a, b
parent
34b38d27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
SDL_compat.h
include/SDL_compat.h
+3
-2
No files found.
include/SDL_compat.h
View file @
18f2ccec
...
@@ -327,8 +327,9 @@ extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay, int interval);
...
@@ -327,8 +327,9 @@ extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay, int interval);
extern
DECLSPEC
void
SDLCALL
SDL_GetKeyRepeat
(
int
*
delay
,
int
*
interval
);
extern
DECLSPEC
void
SDLCALL
SDL_GetKeyRepeat
(
int
*
delay
,
int
*
interval
);
extern
DECLSPEC
int
SDLCALL
SDL_EnableUNICODE
(
int
enable
);
extern
DECLSPEC
int
SDLCALL
SDL_EnableUNICODE
(
int
enable
);
#define SDL_TextureID SDL_Texture*
typedef
SDL_Texture
*
SDL_TextureID
;
#define SDL_WindowID SDL_Window*
typedef
SDL_Window
*
SDL_WindowID
;
#define SDL_RenderPoint SDL_RenderDrawPoint
#define SDL_RenderPoint SDL_RenderDrawPoint
#define SDL_RenderLine SDL_RenderDrawLine
#define SDL_RenderLine SDL_RenderDrawLine
#define SDL_RenderFill(X) (X) ? SDL_RenderFillRect(X) : SDL_RenderClear()
#define SDL_RenderFill(X) (X) ? SDL_RenderFillRect(X) : SDL_RenderClear()
...
...
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