X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=main.c;h=be5ae97d21f794424319be6b88f4f991e62145bb;hp=43a993dd977230723cab26076eb43ec6cafab600;hb=5bc27bd36ff9d698e4e757a5dd8f981b31cfaeab;hpb=a4c0b4c3158f9ce4ea9473dff373cf3e25f388e7 diff --git a/main.c b/main.c index 43a993d..be5ae97 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; @@ -565,7 +565,7 @@ init(int fullscreen) { for(i = 0; i