Help

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
User avatar
hugebaozi
Posts: 22
Joined: August 3rd, 2012, 2:30 am

Help

Post by hugebaozi » August 10th, 2012, 1:15 am

Hi everyone, I have a question in lesson 21.
for(int y=yStart;y<yEnd;y++)
{
for(int x=xStart;x<xEnd;x++)
{
if(font->surface[x+y*surfWidth]==D3DCOLOR_XRGB(0,0,0))
{
PutPixel(x+xoff,y+yoff,color);
}
}
}

So when call gfx.DrawChar('P',0,0,&fixedSys,D3DCOLOR_XRGB(0,255,0)); why it did draw something on the window since font->surface[x+y*surfWidth]==D3DCOLOR_XRGB(0,0,0) is false. AS the window is white.

cameron
Posts: 794
Joined: June 26th, 2012, 5:38 pm
Location: USA

Re: Help

Post by cameron » August 10th, 2012, 1:37 am

What are you trying to say, Be more descriptive and can you post more of your code.
Computer too slow? Consider running a VM on your toaster.

Post Reply