HELP!

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
learncPP123
Posts: 3
Joined: May 7th, 2012, 3:26 am

HELP!

Post by learncPP123 » May 7th, 2012, 3:29 am

Hey I can't figure this out, everytime I try to run the lesson 8 program I get a compiler error! It is giving me a yellow arrow next to the
((D3DCOLOR*)rect.pBits)[ x + (rect.Pitch >> 2) * y ] = D3DCOLOR_XRGB( r,g,b );
I don't know what happened or how to fix it, so help me ASAP!

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: HELP!

Post by chili » May 7th, 2012, 8:20 am

Your program is trying to put a pixel outside of the window coordinates. This is causing the crash.
Chili

learncPP123
Posts: 3
Joined: May 7th, 2012, 3:26 am

Re: HELP!

Post by learncPP123 » May 8th, 2012, 3:33 am

Thank you!

Post Reply