Two weird Problems
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.
i use IDirectDrawSurface7::GetPixelFormat on the primary surface and query the appropriate members of the pixel format structure to get the bit masks and seem to have no trouble (note, that reads "seems to have no problems")
crazy166
some people think i'm crazy, some people know it
crazy166
some people think i'm crazy, some people know it
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement