Lesson 21 Problem

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
Renthal97
Posts: 29
Joined: December 23rd, 2012, 11:16 pm

Lesson 21 Problem

Post by Renthal97 » January 1st, 2013, 8:58 pm

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

indus
Posts: 35
Joined: November 7th, 2012, 12:35 am

Re: Lesson 21 Problem

Post by indus » January 2nd, 2013, 2:53 am

In the DrawChar function at the end of the line
if( font->surface[ x + y * surfWidth ] == D3DCOLOR_XRGB( 0, 0, 0 ) );

Post Reply