Path: chuka.playstation.co.uk!news From: "Rikki Prince" Newsgroups: scee.yaroze.programming.2d_graphics Subject: Re: pmode in GsIMAGE Date: Sun, 28 Feb 1999 03:45:50 -0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 13 Message-ID: <7bae5q$9po29@chuka.playstation.co.uk> References: <7ba63i$9po27@chuka.playstation.co.uk> <36D8A084.2A4495C4@escotia.freeserve.co.uk> <7bad0t$9po28@chuka.playstation.co.uk> NNTP-Posting-Host: th-en135-039.pool.dircon.co.uk X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sorry, do accept my apology for nor looking properly at your code. When I did, I realised how I could make it all work: if((tim.pmode<<24)& 0x01000000) sprite->w=tim.pw*2; /* If 8bit */ else if((tim.pmode<<24)& 0x02000000) sprite->w=tim.pw; /* If 15 direct*/ else sprite->w=tim.pw*4; /* If 4bit */ Know my function works perfectly, except in 4 and 8 bit mode, one of the colours is wrong, but I believe this to be because it is an uncommon colour, so not generated in the CLUT. Is this at all correct!?!?! Thanks again for all you help Rikki