diff options
| author | Cracker64 <cracker642@gmail.com> | 2010-12-22 05:13:01 (GMT) |
|---|---|---|
| committer | Cracker64 <cracker642@gmail.com> | 2010-12-22 05:13:01 (GMT) |
| commit | e5ebf1fb41ee6a55db4869a01638e92acd8ea1d1 (patch) | |
| tree | e191a30702685d5baffb4a6e39ae343fd7612a9a /src/graphics.c | |
| parent | ee4bb84395f2e8aaa9e9af7080f03d837b0a0344 (diff) | |
| download | powder-e5ebf1fb41ee6a55db4869a01638e92acd8ea1d1.zip powder-e5ebf1fb41ee6a55db4869a01638e92acd8ea1d1.tar.gz | |
updated with latest, and FWRK crash fix, INST looks for INSL, wifi lines only show in debug mode.
Diffstat (limited to 'src/graphics.c')
| -rw-r--r-- | src/graphics.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/graphics.c b/src/graphics.c index 0af768b..e719a04 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -1641,7 +1641,7 @@ void draw_parts(pixel *vid) cg = sin(frequency*q + 2) * 127 + 128; cb = sin(frequency*q + 4) * 127 + 128; blendpixel(vid, nx, ny, cr, cg, cb, 255); - if(mousex==(nx) && mousey==(ny)) + if(mousex==(nx) && mousey==(ny) && DEBUG_MODE) { int z; for(z = 0; z<NPART; z++) { @@ -2843,6 +2843,24 @@ void dim_copy(pixel *dst, pixel *src) } } +void dim_copy_pers(pixel *dst, pixel *src) +{ + int i,r,g,b; + for(i=0; i<(XRES+BARSIZE)*YRES; i++) + { + r = PIXR(src[i]); + g = PIXG(src[i]); + b = PIXB(src[i]); + if(r>0) + r--; + if(g>0) + g--; + if(b>0) + b--; + dst[i] = PIXRGB(r,g,b); + } +} + void render_zoom(pixel *img) { int x, y, i, j; |
