Vous les aimez bien, les posts de ce style???
[code]#define Q(ti89value,ti92pv200value) (TI89?(ti89value)

ti92pv200value))
...
// 7 grayscale with transparency clipped sprite routine
__attribute__((regparm(2)))
void DrawSprite(unsigned char *sprite, short x, short y)
{
unsigned char bytewidth=*(sprite++);
unsigned char height=*(sprite++);
unsigned short bytesize=bytewidth*height;
unsigned char *mplane=sprite+bytesize;
unsigned char *lplane=mplane+bytesize;
unsigned short *dscreen=Gray3PDBufGetHiddenPlane(GRAY3P_DARK_PLANE);
unsigned short *mscreen=Gray3PDBufGetHiddenPlane(GRAY3P_MEDIUM_PLANE);
unsigned short *lscreen=Gray3PDBufGetHiddenPlane(GRAY3P_LIGHT_PLANE);
unsigned short xshift0=24-(x&15);
unsigned short xshift1=24-((x+8)&15);
for (short i=0;i<height;i++) {
short yc=y+i;
if ((yc>=0)&&(yc<128)) {
for (short j=0;j<bytewidth;j++) {
short xc=x+(j<<3);
if ((xc>-8) && (xc<240)) {
unsigned short xshift=(j&1)?xshift1:xshift0;
unsigned long d=*(sprite++);
unsigned long m=~(unsigned long)(unsigned char)~*(mplane++);
unsigned long l=~(unsigned long)(unsigned char)~*(lplane++);
d<<=xshift;m=~((~m)<<xshift);l=~((~l)<<xshift);
unsigned long mask=~d&m&l;
if (xc<0) mask|=0xFFFF0000ul;
if (xc>232) mask|=0xFFFFul;
*(unsigned long *)(dscreen+(yc*15+(xc>>4)))&=mask;
*(unsigned long *)(mscreen+(yc*15+(xc>>4)))&=mask;
*(unsigned long *)(lscreen+(yc*15+(xc>>4)))&=mask;
// medium gray dithering to improve quality
unsigned long mgray=d&~m&~l;
switch (yc&3) {
case 0: mgray&=0x88888888; break;
case 1: mgray&=0x11111111; break;
case 2: mgray&=0x44444444; break;
case 3: mgray&=0x22222222; break;
}
d&=~mgray;m|=mgray;l|=mgray;
d&=~mask;m&=~mask;l&=~mask;
*(unsigned long *)(dscreen+(yc*15+(xc>>4)))|=d;
*(unsigned long *)(mscreen+(yc*15+(xc>>4)))|=m;
*(unsigned long *)(lscreen+(yc*15+(xc>>4)))|=l;
} else {sprite++;mplane++;lplane++;}
}
} else {sprite+=bytewidth;mplane+=bytewidth;lplane+=bytewidth;}
}
}[/code]
Extrait de [url=http://pub26.ezboard.com/ftichessteamhqfrm10.showMessage?topicID=65.topic]Backgammon[url].
(Liste des problèmes: code au lieu de pre, donc espaces en début de ligne disparus, donc code illisible; smileys qui corrompent certaines combinaisons de caractères; tag url non reconnu à cause d'un / manquant)
Personnellement, ils m'agacent énormément (surtout parce qu'ils sont illisibles).