But something weird is happening when I use this pointer (and yes I lock the surface before I use it to draw). The Microsoft tutorial casts it to an unsigned char * (BYTE *), if I cast it to any other type it crashes my computer. By my calculations a BYTE cast should only give it a range of 511 different adresses. I set the pointer to the middle of the screen 320x240 (it''s at 640x480 resolution) and it comes up at the lower left hand of the screen (almost the middle of the third quatrant). I know the pointer gives a linear address and to get the location right you have to multiply it to DDSURFACEDESC::lPitch and add it to X.
What''s goin'' on man?!?! a.h{text-decoration:none;color:blue;};a.h:hover{text-decoration:underline;background:red;};
Snootchie Bootchies!
-=CF=-