Advertisement

direct draw crash

Started by September 13, 2000 10:50 AM
10 comments, last by T-dawg 24 years, 3 months ago
i had a reason somewhere..

now i see
from "windows game programming for dummies" :

//use video pointer to write to memory.. notice the use of lPitch (linear pitch) and the division by 2 ( >> 1); this is needed to keep the adressing correct because you''re using USHORT pointers and lPitch is always in bytes

and just now i noticed he used a UCHAR pointer

my mistake
quote: Original post by Quantum

i had a reason somewhere..

now i see
from "windows game programming for dummies" :

//use video pointer to write to memory.. notice the use of lPitch (linear pitch) and the division by 2 ( >> 1); this is needed to keep the adressing correct because you''re using USHORT pointers and lPitch is always in bytes

and just now i noticed he used a UCHAR pointer

my mistake


Hi all.

Ahhhh now we are talking. OK, I was wrong too, there is a use for that division or right shift after all

Topgoro


;You are not a real programmer until you start all your sentences with a semicolon
We emphasize "gotoless" programming in this company, so constructs like "goto hell" are strictly forbidden.

This topic is closed to new replies.

Advertisement