From: Joshua Grams Date: Wed, 6 Apr 2005 21:24:24 +0000 (+0000) Subject: fixed makebangdots to check surface's colorkey. X-Git-Tag: 0.1~10 X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=commitdiff_plain;h=11849d10c3ffc3fa9cd659c87d7692bec522b880;hp=17f2393679c8c0fd6051e27d6ced8a9af3075f28 fixed makebangdots to check surface's colorkey. --- diff --git a/main.c b/main.c index 43a993d..058fbad 100644 --- 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; xw; x++) { for(y = 0; yh; 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;