Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
5c1dd9fd
Commit
5c1dd9fd
authored
May 19, 2021
by
Deucе
👌🏾
Browse files
Fix some return types for SDL functions
parent
84eb116c
Pipeline
#2241
passed with stage
in 8 minutes and 38 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/conio/sdlfuncs.c
src/conio/sdlfuncs.c
+1
-1
src/conio/sdlfuncs.h
src/conio/sdlfuncs.h
+5
-5
No files found.
src/conio/sdlfuncs.c
View file @
5c1dd9fd
...
...
@@ -218,7 +218,7 @@ int load_sdl_funcs(struct sdlfuncs *sdlf)
int
init_sdl_video
(
void
)
{
char
*
drivername
;
const
char
*
drivername
;
if
(
sdl_video_initialized
)
return
(
0
);
...
...
src/conio/sdlfuncs.h
View file @
5c1dd9fd
...
...
@@ -15,7 +15,7 @@ struct sdlfuncs {
void
(
HACK_HACK_HACK
*
Quit
)
(
void
);
int
(
HACK_HACK_HACK
*
PeepEvents
)
(
SDL_Event
*
events
,
int
numevents
,
SDL_eventaction
action
,
Uint32
minType
,
Uint32
maxType
);
char
*
(
HACK_HACK_HACK
*
GetCurrentVideoDriver
)
(
void
);
const
char
*
(
HACK_HACK_HACK
*
GetCurrentVideoDriver
)
(
void
);
Uint8
(
HACK_HACK_HACK
*
EventState
)
(
Uint32
type
,
int
state
);
SDL_Surface
*
(
HACK_HACK_HACK
*
CreateRGBSurfaceFrom
)(
void
*
pixels
,
int
width
,
int
height
,
int
depth
,
int
pitch
,
Uint32
Rmask
,
Uint32
Gmask
,
Uint32
Bmask
,
Uint32
Amask
);
...
...
@@ -41,14 +41,14 @@ struct sdlfuncs {
SDL_Keymod
(
HACK_HACK_HACK
*
GetModState
)
(
void
);
void
(
HACK_HACK_HACK
*
SetWindowSize
)
(
SDL_Window
*
window
,
int
w
,
int
h
);
void
(
HACK_HACK_HACK
*
DestroyTexture
)
(
SDL_Texture
*
texture
);
void
(
HACK_HACK_HACK
*
SetWindowFullscreen
)
(
SDL_Window
*
window
,
Uint32
flags
);
void
(
HACK_HACK_HACK
*
LockTexture
)
(
SDL_Texture
*
texture
,
const
SDL_Rect
*
rect
,
void
**
pixels
,
int
*
pitch
);
int
(
HACK_HACK_HACK
*
SetWindowFullscreen
)
(
SDL_Window
*
window
,
Uint32
flags
);
int
(
HACK_HACK_HACK
*
LockTexture
)
(
SDL_Texture
*
texture
,
const
SDL_Rect
*
rect
,
void
**
pixels
,
int
*
pitch
);
void
(
HACK_HACK_HACK
*
UnlockTexture
)
(
SDL_Texture
*
texture
);
void
(
HACK_HACK_HACK
*
QueryTexture
)
(
SDL_Texture
*
texture
,
Uint32
*
format
,
int
*
access
,
int
*
w
,
int
*
h
);
int
(
HACK_HACK_HACK
*
QueryTexture
)
(
SDL_Texture
*
texture
,
Uint32
*
format
,
int
*
access
,
int
*
w
,
int
*
h
);
void
(
HACK_HACK_HACK
*
GetWindowPosition
)
(
SDL_Window
*
window
,
int
*
x
,
int
*
y
);
void
(
HACK_HACK_HACK
*
SetWindowPosition
)
(
SDL_Window
*
window
,
int
x
,
int
y
);
void
(
HACK_HACK_HACK
*
SetWindowMinimumSize
)
(
SDL_Window
*
window
,
int
w
,
int
y
);
void
(
HACK_HACK_HACK
*
SetClipboardText
)
(
const
char
*
);
int
(
HACK_HACK_HACK
*
SetClipboardText
)
(
const
char
*
);
char
*
(
HACK_HACK_HACK
*
GetClipboardText
)
(
void
);
SDL_Cursor
*
(
HACK_HACK_HACK
*
CreateSystemCursor
)
(
SDL_SystemCursor
id
);
SDL_Cursor
*
(
HACK_HACK_HACK
*
GetDefaultCursor
)
(
void
);
...
...
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