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
direct draw crash
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
Popular Topics
Advertisement
Recommended Tutorials
Advertisement