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.