Original Post
Ok, I have a program that reads the bitmasks and then determines the spacing for the pixel format. Heres how the program goes.
DDSURFACEDESC ddsd;
// Initialize DirectDraw
DWORD rbitmask = ddsd.ddpfPixelFormat.dwRBitMask;
DWORD gbitmask = ddsd.ddpfPixelFormat.dwGBitMask;
DWORD bbitmask = ddsd.ddpfPixelFormat.dwBBitMask;
And this doesnt return the right bitmask. Whats wrong???
Oops, I forgot the 2nd question, I''ll remember it later.