Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
vor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated website URL in README.
[vor.git]
/
sprite.c
diff --git
a/sprite.c
b/sprite.c
index
36ca546
..
6a20442
100644
(file)
--- a/
sprite.c
+++ b/
sprite.c
@@
-48,7
+48,7
@@
get_shape(Sprite *s)
exit(1);
}
exit(1);
}
- SDL_LockSurface(s->image);
+ if(SDL_MUSTLOCK(s->image)) { SDL_LockSurface(s->image); }
px = s->image->pixels;
transp = s->image->format->colorkey;
p = s->mask;
px = s->image->pixels;
transp = s->image->format->colorkey;
p = s->mask;
@@
-62,7
+62,7
@@
get_shape(Sprite *s)
}
px = (uint16_t *) ((uint8_t *) px + s->image->pitch - 2*s->image->w);
}
}
px = (uint16_t *) ((uint8_t *) px + s->image->pitch - 2*s->image->w);
}
- SDL_UnlockSurface(s->image);
+ if(SDL_MUSTLOCK(s->image)) { SDL_UnlockSurface(s->image); }
}
}