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:26:10 -0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 13 Message-ID: <7bad0t$9po28@chuka.playstation.co.uk> References: <7ba63i$9po27@chuka.playstation.co.uk> <36D8A084.2A4495C4@escotia.freeserve.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 Thanks for the help ScoTT, not only have you helped me with this, but you've given me some idea of how to set bits in variables (I woz a bit 'iffy' on this before!). Also, I've modified my code slightly, and got this: if((tim.pmode<<24)&(0<<24)) sprite->w=tim.pw*4; /* If 4bit */ else if((tim.pmode<<24)|(1<<24)) sprite->w=tim.pw*2; /* If 8bit */ else sprite->w=tim.pw; /* If other */ Does this look alright for what I'm trying to do? Thanks Rikki