diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2011-09-30 09:50:46 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-09-30 09:50:46 (GMT) |
| commit | 1759d0bd46f6b31e1c47bd2d8165bf5d6f292597 (patch) | |
| tree | fbc6140d1167faeb167f815c530ca79d418b8c79 /src | |
| parent | 311d3ef6c11c0db37be8d938b984a69dbd85a594 (diff) | |
| download | powder-1759d0bd46f6b31e1c47bd2d8165bf5d6f292597.zip powder-1759d0bd46f6b31e1c47bd2d8165bf5d6f292597.tar.gz | |
Make photons less green, green was given 2 extra bits by Skylark, not sure if this was intentional or not.
Diffstat (limited to 'src')
| -rw-r--r-- | src/graphics.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/graphics.c b/src/graphics.c index 152a099..381a86b 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -1881,7 +1881,7 @@ void draw_parts(pixel *vid) cr += (parts[i].ctype >> (x+18)) & 1; cb += (parts[i].ctype >> x) & 1; } - for (x=0; x<14; x++) + for (x=0; x<12; x++) cg += (parts[i].ctype >> (x+9)) & 1; x = 624/(cr+cg+cb+1); cr *= x; @@ -2463,7 +2463,7 @@ void draw_parts(pixel *vid) cr += (parts[i].ctype >> (x+18)) & 1; cb += (parts[i].ctype >> x) & 1; } - for (x=0; x<14; x++) + for (x=0; x<12; x++) cg += (parts[i].ctype >> (x+9)) & 1; x = 624/(cr+cg+cb+1); cr *= x; @@ -2634,7 +2634,7 @@ void draw_parts(pixel *vid) cr += (parts[i].ctype >> (x+18)) & 1; cb += (parts[i].ctype >> x) & 1; } - for (x=0; x<14; x++) + for (x=0; x<12; x++) cg += (parts[i].ctype >> (x+9)) & 1; x = 624/(cr+cg+cb+1); cr *= x; @@ -2657,7 +2657,7 @@ void draw_parts(pixel *vid) cr += (parts[i].ctype >> (x+18)) & 1; cb += (parts[i].ctype >> x) & 1; } - for (x=0; x<14; x++) + for (x=0; x<12; x++) cg += (parts[i].ctype >> (x+9)) & 1; x = 624/(cr+cg+cb+1); cr *= x; @@ -2682,7 +2682,7 @@ void draw_parts(pixel *vid) cr += (parts[i].ctype >> (x+18)) & 1; cb += (parts[i].ctype >> x) & 1; } - for (x=0; x<14; x++) + for (x=0; x<12; x++) cg += (parts[i].ctype >> (x+9)) & 1; x = 624/(cr+cg+cb+1); cr *= x; @@ -2712,7 +2712,7 @@ void draw_parts(pixel *vid) cr += (parts[i].ctype >> (x+18)) & 1; cb += (parts[i].ctype >> x) & 1; } - for (x=0; x<14; x++) + for (x=0; x<12; x++) cg += (parts[i].ctype >> (x+9)) & 1; x = 624/(cr+cg+cb+1); cr *= x; @@ -2743,7 +2743,7 @@ void draw_parts(pixel *vid) cr += (parts[i].ctype >> (x+18)) & 1; cb += (parts[i].ctype >> x) & 1; } - for (x=0; x<14; x++) + for (x=0; x<12; x++) cg += (parts[i].ctype >> (x+9)) & 1; x = 624/(cr+cg+cb+1); cr *= x; @@ -3681,7 +3681,7 @@ void draw_parts(pixel *vid) cr += (parts[i].ctype >> (x+18)) & 1; cb += (parts[i].ctype >> x) & 1; } - for (x=0; x<14; x++) + for (x=0; x<12; x++) cg += (parts[i].ctype >> (x+9)) & 1; x = 624/(cr+cg+cb+1); cr *= x; @@ -4075,7 +4075,7 @@ void draw_wavelengths(pixel *vid, int x, int y, int h, int wl) cr += (tmp >> (j+18)) & 1; cb += (tmp >> j) & 1; } - for (j=0; j<14; j++) + for (j=0; j<13; j++) cg += (tmp >> (j+9)) & 1; tmp = 624/(cr+cg+cb+1); cr *= tmp; |
