Skip to main content
gamedev.net
🔒 Locked

Two weird Problems

Started by ProgHawk Mar 17, 2000 at 9:58 PM 0 replies 500+ views
Original Post
ProgHawk
ProgHawk
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.
crazy166
crazy166
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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.