Whoops, fix PMODE_BLEND to use correct function, also fix BRAY del mode
This commit is contained in:
parent
e46f26684b
commit
a7191ce9e7
@ -222,6 +222,8 @@ int graphics_INVS(GRAPHICS_FUNC_ARGS)
|
|||||||
*colr = 15;
|
*colr = 15;
|
||||||
*colg = 0;
|
*colg = 0;
|
||||||
*colb = 150;
|
*colb = 150;
|
||||||
|
*pixel_mode &= PMODE;
|
||||||
|
*pixel_mode |= PMODE_BLEND;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -310,8 +312,8 @@ int graphics_BRAY(GRAPHICS_FUNC_ARGS)
|
|||||||
trans = cpart->life*100;
|
trans = cpart->life*100;
|
||||||
if (trans>255) trans = 255;
|
if (trans>255) trans = 255;
|
||||||
*colr = 255;
|
*colr = 255;
|
||||||
*colr = 150;
|
*colg = 150;
|
||||||
*colr = 50;
|
*colb = 50;
|
||||||
}
|
}
|
||||||
*cola = trans;
|
*cola = trans;
|
||||||
*pixel_mode &= ~PMODE;
|
*pixel_mode &= ~PMODE;
|
||||||
|
@ -1896,7 +1896,7 @@ void render_parts(pixel *vid)
|
|||||||
flatC[cflatC++] = ((float)cola)/255.0f;
|
flatC[cflatC++] = ((float)cola)/255.0f;
|
||||||
cflat++;
|
cflat++;
|
||||||
#else
|
#else
|
||||||
addpixel(vid, nx, ny, colr, colg, colb, cola);
|
blendpixel(vid, nx, ny, colr, colg, colb, cola);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
if(pixel_mode & PMODE_ADD)
|
if(pixel_mode & PMODE_ADD)
|
||||||
|
Loading…
Reference in New Issue
Block a user