Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
vor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
17f2393
)
fixed makebangdots to check surface's colorkey.
author
Joshua Grams
<josh@qualdan.com>
Wed, 6 Apr 2005 21:24:24 +0000
(21:24 +0000)
committer
Joshua Grams
<josh@qualdan.com>
Wed, 6 Apr 2005 21:24:24 +0000
(21:24 +0000)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index
43a993d
..
058fbad
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-216,7
+216,7
@@
makebangdots(int xbang, int ybang, int dx, int dy, SDL_Surface *s, int power) {
for(x = 0; x<s->w; x++) {
for(y = 0; y<s->h; y++) {
c = rawpixel[s->pitch/2*y + x];
for(x = 0; x<s->w; x++) {
for(y = 0; y<s->h; y++) {
c = rawpixel[s->pitch/2*y + x];
- if(c && c != SDL_MapRGB(s->format,0,255,0)) {
+ if(c && c != s->format->colorkey) {
theta = rnd()*M_PI*2;
theta = rnd()*M_PI*2;