Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Fixed warnings about unused variables and so forth.
  • Loading branch information
slouken committed Feb 17, 2011
1 parent 64e542f commit 8c12d45a6c905e13204cf707cb6bf199916958d0
@@ -401,7 +401,6 @@ SDL_SendTouchMotion(SDL_TouchID id, SDL_FingerID fingerid, int relative,
SDL_Finger *finger;
int posted;
Sint16 xrel, yrel;
float x_max = 0, y_max = 0;
Uint16 x;
Uint16 y;
Uint16 pressure;
@@ -161,8 +161,6 @@ GLES2_ActivateRenderer(SDL_Renderer * renderer)
static void
GLES2_WindowEvent(SDL_Renderer * renderer, const SDL_WindowEvent *event)
{
GLES2_DriverContext *rdata = (GLES2_DriverContext *)renderer->driverdata;

if (event->event == SDL_WINDOWEVENT_SIZE_CHANGED) {
/* Rebind the context to the window area */
SDL_CurrentContext = NULL;
@@ -232,7 +230,6 @@ static int GLES2_UpdateTexture(SDL_Renderer *renderer, SDL_Texture *texture, con
static int
GLES2_CreateTexture(SDL_Renderer *renderer, SDL_Texture *texture)
{
GLES2_DriverContext *rdata = (GLES2_DriverContext *)renderer->driverdata;
GLES2_TextureData *tdata;
GLenum format;
GLenum type;
@@ -995,7 +992,6 @@ GLES2_RenderCopy(SDL_Renderer *renderer, SDL_Texture *texture, const SDL_Rect *s
GLfloat texCoords[8];
GLuint locTexture;
GLuint locModulation;
GLuint locColorTable;

GLES2_ActivateRenderer(renderer);

@@ -511,7 +511,6 @@ SW_RenderReadPixels(SDL_Renderer * renderer, const SDL_Rect * rect,
static void
SW_RenderPresent(SDL_Renderer * renderer)
{
SW_RenderData *data = (SW_RenderData *) renderer->driverdata;
SDL_Window *window = renderer->window;

if (window) {
@@ -476,7 +476,6 @@ Blit1toNAlphaKey(SDL_BlitInfo * info)
int srcskip = info->src_skip;
Uint8 *dst = info->dst;
int dstskip = info->dst_skip;
SDL_PixelFormat *srcfmt = info->src_fmt;
SDL_PixelFormat *dstfmt = info->dst_fmt;
const SDL_Color *srcpal = info->src_fmt->palette->colors;
Uint32 ckey = info->colorkey;
@@ -53,7 +53,7 @@ int main(int argc, char **argv) {
UIApplicationMain(argc, argv, NULL, @"SDLUIKitDelegate");

[pool release];

return 0;
}

@implementation SDLUIKitDelegate

0 comments on commit 8c12d45

Please sign in to comment.