Lesson 21 Problem
Lesson 21 Problem
Well everything's working aside from the fact that my text are just blocks. I have a Drawchar function and the Test function that Chili used in his video. The test draws everything on the screen perfectly fine but when I use Drawchar, it just shows colored blocks and not any letters. So therefore I am assuming that something is wrong with my drawchar function, but the problem is, I've looked over it repeatedly and it is letter for letter the exact same as in the video. I've been checking over the code for about 2 days now and I can't for the life of me figure out what is wrong. Thankyou in advance for any help!
- Attachments
-
- text.zip
- (85.65 KiB) Downloaded 165 times
Re: Lesson 21 Problem
In the DrawChar function at the end of the line
if( font->surface[ x + y * surfWidth ] == D3DCOLOR_XRGB( 0, 0, 0 ) );
if( font->surface[ x + y * surfWidth ] == D3DCOLOR_XRGB( 0, 0, 0 ) );