Path: chuka.playstation.co.uk!dialup-01-17.netcomuk.co.uk!user From: ira@netcomuk.co.uk (Ira Rainey) Newsgroups: scea.yaroze.programming.2d_graphics Subject: Re: Drawing without refresh Date: Sun, 17 Aug 1997 11:24:12 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 22 Message-ID: References: <33F4F75F.6E8A@digitalcity.com> NNTP-Posting-Host: dialup-01-17.netcomuk.co.uk X-newsreader: MT-NewsWatcher 2.2.2 In article <33F4F75F.6E8A@digitalcity.com>, justin@digitalcity.com wrote: > Also if you run my code you'll > notice that the background is kinda blue-green. This is the default > background color of the frame buffer I think. How do I make my > background black without using a TIM file. > > static int graphicsInit() > { > activeBuff = GsGetActiveBuff(); > GsSetWorkBase((PACKET *)GpuPacketArea[activeBuff]); > GsClearOt(0, 0, &WorldOT[activeBuff]); > DrawSync(0); > VSync(0); > GsSwapDispBuff(); > GsSortClear(60, 120, 120, &WorldOT[activeBuff]); > } Here's what you need to change the screen background colour. In the GsSortClear command, the first three numbers are the values of Red, Green and Blue respectively. Hence: GsSortClear(0, 0, 0, &WorldOT[activeBuff]); = black.