Ludas Matyas
2004-07-19 22:29:18 UTC
I can't create a (primary) surface in windowed mode 256 color palette in
DirectDraw.
CooperativeLevel is DDSCL_NORMAL.
I set DDSURFACEDESC's dwFlags to DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH |
DDSD_PIXELFORMAT
ddsCaps.dwCaps member is DDSCAPS_PRIMARYSURFACE.
ddsd.ddpfPixelFormat.dwFlags = DDPF_PALETTEINDEXED8
What else needs to be initialised? Or is anything not correct somewhere?
Thanks,
Ludas
DirectDraw.
CooperativeLevel is DDSCL_NORMAL.
I set DDSURFACEDESC's dwFlags to DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH |
DDSD_PIXELFORMAT
ddsCaps.dwCaps member is DDSCAPS_PRIMARYSURFACE.
ddsd.ddpfPixelFormat.dwFlags = DDPF_PALETTEINDEXED8
What else needs to be initialised? Or is anything not correct somewhere?
Thanks,
Ludas