Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
tree 5b46fd5b8c94
Browse files Browse the repository at this point in the history
parent 971b278f0756
author Edward Rudd <urkle@outoforder.cc> 1358022907 18000
committer Edward Rudd <urkle@outoforder.cc> 1358022907 18000
revision 6819
branch default

Remove some redundant assigns
  • Loading branch information
slouken committed Feb 12, 2013
1 parent 90db6be commit d6a8b7f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/events/SDL_touch.c
Expand Up @@ -125,7 +125,6 @@ SDL_AddTouch(const SDL_Touch * touch, char *name)
SDL_memcpy(SDL_touchPads[index], touch, sizeof(*touch));

/* we're setting the touch properties */
length = 0;
length = SDL_strlen(name);
SDL_touchPads[index]->focus = 0;
SDL_touchPads[index]->name = SDL_malloc((length + 2) * sizeof(char));
Expand Down
1 change: 0 additions & 1 deletion src/haptic/darwin/SDL_syshaptic.c
Expand Up @@ -173,7 +173,6 @@ SDL_SYS_HapticInit(void)
/* IOServiceGetMatchingServices consumes dictionary. */

if (!IOIteratorIsValid(iter)) { /* No iterator. */
numhaptics = 0;
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion src/video/SDL_blit_A.c
Expand Up @@ -258,7 +258,7 @@ static void
BlitRGBtoRGBSurfaceAlphaMMX(SDL_BlitInfo * info)
{
SDL_PixelFormat *df = info->dst_fmt;
Uint32 chanmask = df->Rmask | df->Gmask | df->Bmask;
Uint32 chanmask;
unsigned alpha = info->a;

if (alpha == 128 && (df->Rmask | df->Gmask | df->Bmask) == 0x00FFFFFF) {
Expand Down
1 change: 0 additions & 1 deletion src/video/SDL_shape.c
Expand Up @@ -71,7 +71,6 @@ SDL_CalculateShapeBitmap(SDL_WindowShapeMode mode,SDL_Surface *shape,Uint8* bitm
SDL_Color key;
if(SDL_MUSTLOCK(shape))
SDL_LockSurface(shape);
pixel = (Uint8*)shape->pixels;
for(y = 0;y<shape->h;y++) {
for(x=0;x<shape->w;x++) {
alpha = 0;
Expand Down

0 comments on commit d6a8b7f

Please sign in to comment.