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
66d40ad3
Commit
66d40ad3
authored
Aug 22, 2010
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup from the Android commit
parent
a64fc29c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
14 deletions
+3
-14
SDL_compat.c
src/SDL_compat.c
+0
-11
SDL_keyboard.c
src/events/SDL_keyboard.c
+3
-3
No files found.
src/SDL_compat.c
View file @
66d40ad3
...
...
@@ -639,29 +639,18 @@ SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags)
/* If we're in OpenGL mode, just create a stub surface and we're done! */
if
(
flags
&
SDL_OPENGL
)
{
printf
(
"1
\n
"
);
SDL_VideoContext
=
SDL_GL_CreateContext
(
SDL_VideoWindow
);
if
(
!
SDL_VideoContext
)
{
return
NULL
;
}
printf
(
"2
\n
"
);
if
(
SDL_GL_MakeCurrent
(
SDL_VideoWindow
,
SDL_VideoContext
)
<
0
)
{
return
NULL
;
}
printf
(
"3
\n
"
);
SDL_VideoSurface
=
SDL_CreateRGBSurfaceFrom
(
NULL
,
width
,
height
,
bpp
,
0
,
0
,
0
,
0
,
0
);
if
(
!
SDL_VideoSurface
)
{
return
NULL
;
}
printf
(
"4
\n
"
);
SDL_VideoSurface
->
flags
|=
surface_flags
;
SDL_PublicSurface
=
SDL_VideoSurface
;
return
SDL_PublicSurface
;
...
...
src/events/SDL_keyboard.c
View file @
66d40ad3
...
...
@@ -729,7 +729,7 @@ SDL_SendKeyboardKey(Uint8 state, SDL_scancode scancode)
break
;
default:
/* Invalid state -- bail */
return
2
;
return
0
;
}
/* Drop events that don't change state */
...
...
@@ -738,14 +738,14 @@ SDL_SendKeyboardKey(Uint8 state, SDL_scancode scancode)
#if 0
printf("Keyboard event didn't change state - dropped!\n");
#endif
return
3
;
return
0
;
}
/* Update internal keyboard state */
keyboard
->
keystate
[
scancode
]
=
state
;
/* Post the event, if desired */
posted
=
4
;
posted
=
0
;
if
(
SDL_GetEventState
(
type
)
==
SDL_ENABLE
)
{
SDL_Event
event
;
event
.
key
.
type
=
type
;
...
...
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