JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fixed makebangdots to check surface's colorkey.
[vor.git] / main.c
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;