Nice, i added it to my graphics lib, looks just like 32 bit. but the colors in my images that had black or white got overflowed, so i enaable Color Clamp(reg: COLCLAMP ) and it looks PERFECT!!!!.
you just saved me about 50% of memory in the GS.
Code: Select all
void sGsEnableDithering(unsigned char enable, int mode)
sgs_setPRIMTAG(((sGS_PRIMTAG *)&send_buf), 3,1,0,0,0,0,1,0x0e);
dithermatrix = ((sGS_R_DIMX *)&send_buf);
dither = ((sGS_R_DTHE *)&send_buf);
cc = ((sGS_R_DTHE *)&send_buf);
// thanks to:"Maximus32" on ps2dev.org for matrix code
gs_dma_send((unsigned int *)&send_buf,1+3);