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
7fda55f8
Commit
7fda55f8
authored
Feb 17, 2011
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed warnings about unused variables and so forth.
parent
30d36c1c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
8 deletions
+1
-8
SDL_touch.c
src/events/SDL_touch.c
+0
-1
SDL_render_gles2.c
src/render/opengles2/SDL_render_gles2.c
+0
-4
SDL_render_sw.c
src/render/software/SDL_render_sw.c
+0
-1
SDL_blit_1.c
src/video/SDL_blit_1.c
+0
-1
SDL_uikitappdelegate.m
src/video/uikit/SDL_uikitappdelegate.m
+1
-1
No files found.
src/events/SDL_touch.c
View file @
7fda55f8
...
@@ -401,7 +401,6 @@ SDL_SendTouchMotion(SDL_TouchID id, SDL_FingerID fingerid, int relative,
...
@@ -401,7 +401,6 @@ SDL_SendTouchMotion(SDL_TouchID id, SDL_FingerID fingerid, int relative,
SDL_Finger
*
finger
;
SDL_Finger
*
finger
;
int
posted
;
int
posted
;
Sint16
xrel
,
yrel
;
Sint16
xrel
,
yrel
;
float
x_max
=
0
,
y_max
=
0
;
Uint16
x
;
Uint16
x
;
Uint16
y
;
Uint16
y
;
Uint16
pressure
;
Uint16
pressure
;
...
...
src/render/opengles2/SDL_render_gles2.c
View file @
7fda55f8
...
@@ -161,8 +161,6 @@ GLES2_ActivateRenderer(SDL_Renderer * renderer)
...
@@ -161,8 +161,6 @@ GLES2_ActivateRenderer(SDL_Renderer * renderer)
static
void
static
void
GLES2_WindowEvent
(
SDL_Renderer
*
renderer
,
const
SDL_WindowEvent
*
event
)
GLES2_WindowEvent
(
SDL_Renderer
*
renderer
,
const
SDL_WindowEvent
*
event
)
{
{
GLES2_DriverContext
*
rdata
=
(
GLES2_DriverContext
*
)
renderer
->
driverdata
;
if
(
event
->
event
==
SDL_WINDOWEVENT_SIZE_CHANGED
)
{
if
(
event
->
event
==
SDL_WINDOWEVENT_SIZE_CHANGED
)
{
/* Rebind the context to the window area */
/* Rebind the context to the window area */
SDL_CurrentContext
=
NULL
;
SDL_CurrentContext
=
NULL
;
...
@@ -232,7 +230,6 @@ static int GLES2_UpdateTexture(SDL_Renderer *renderer, SDL_Texture *texture, con
...
@@ -232,7 +230,6 @@ static int GLES2_UpdateTexture(SDL_Renderer *renderer, SDL_Texture *texture, con
static
int
static
int
GLES2_CreateTexture
(
SDL_Renderer
*
renderer
,
SDL_Texture
*
texture
)
GLES2_CreateTexture
(
SDL_Renderer
*
renderer
,
SDL_Texture
*
texture
)
{
{
GLES2_DriverContext
*
rdata
=
(
GLES2_DriverContext
*
)
renderer
->
driverdata
;
GLES2_TextureData
*
tdata
;
GLES2_TextureData
*
tdata
;
GLenum
format
;
GLenum
format
;
GLenum
type
;
GLenum
type
;
...
@@ -995,7 +992,6 @@ GLES2_RenderCopy(SDL_Renderer *renderer, SDL_Texture *texture, const SDL_Rect *s
...
@@ -995,7 +992,6 @@ GLES2_RenderCopy(SDL_Renderer *renderer, SDL_Texture *texture, const SDL_Rect *s
GLfloat
texCoords
[
8
];
GLfloat
texCoords
[
8
];
GLuint
locTexture
;
GLuint
locTexture
;
GLuint
locModulation
;
GLuint
locModulation
;
GLuint
locColorTable
;
GLES2_ActivateRenderer
(
renderer
);
GLES2_ActivateRenderer
(
renderer
);
...
...
src/render/software/SDL_render_sw.c
View file @
7fda55f8
...
@@ -511,7 +511,6 @@ SW_RenderReadPixels(SDL_Renderer * renderer, const SDL_Rect * rect,
...
@@ -511,7 +511,6 @@ SW_RenderReadPixels(SDL_Renderer * renderer, const SDL_Rect * rect,
static
void
static
void
SW_RenderPresent
(
SDL_Renderer
*
renderer
)
SW_RenderPresent
(
SDL_Renderer
*
renderer
)
{
{
SW_RenderData
*
data
=
(
SW_RenderData
*
)
renderer
->
driverdata
;
SDL_Window
*
window
=
renderer
->
window
;
SDL_Window
*
window
=
renderer
->
window
;
if
(
window
)
{
if
(
window
)
{
...
...
src/video/SDL_blit_1.c
View file @
7fda55f8
...
@@ -476,7 +476,6 @@ Blit1toNAlphaKey(SDL_BlitInfo * info)
...
@@ -476,7 +476,6 @@ Blit1toNAlphaKey(SDL_BlitInfo * info)
int
srcskip
=
info
->
src_skip
;
int
srcskip
=
info
->
src_skip
;
Uint8
*
dst
=
info
->
dst
;
Uint8
*
dst
=
info
->
dst
;
int
dstskip
=
info
->
dst_skip
;
int
dstskip
=
info
->
dst_skip
;
SDL_PixelFormat
*
srcfmt
=
info
->
src_fmt
;
SDL_PixelFormat
*
dstfmt
=
info
->
dst_fmt
;
SDL_PixelFormat
*
dstfmt
=
info
->
dst_fmt
;
const
SDL_Color
*
srcpal
=
info
->
src_fmt
->
palette
->
colors
;
const
SDL_Color
*
srcpal
=
info
->
src_fmt
->
palette
->
colors
;
Uint32
ckey
=
info
->
colorkey
;
Uint32
ckey
=
info
->
colorkey
;
...
...
src/video/uikit/SDL_uikitappdelegate.m
View file @
7fda55f8
...
@@ -53,7 +53,7 @@ int main(int argc, char **argv) {
...
@@ -53,7 +53,7 @@ int main(int argc, char **argv) {
UIApplicationMain
(
argc
,
argv
,
NULL
,
@"SDLUIKitDelegate"
);
UIApplicationMain
(
argc
,
argv
,
NULL
,
@"SDLUIKitDelegate"
);
[
pool
release
];
[
pool
release
];
return
0
;
}
}
@implementation
SDLUIKitDelegate
@implementation
SDLUIKitDelegate
...
...
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