ddraw palette problem...
Well first off here''s the code that is in question.
// Create and set the palette
lpDDPal = DDLoadPalette(lpDD, MAKEINTRESOURCE(IDB_GRS01));
lpDDSPrimary->SetPalette(lpDDPal);
When I display the image IDB_GRS01 it appears to use about 3 colors and looks absolutely horrible. Does anyone know whats going on?
-Shadwdrak
Make the image in a multiple of 8, ie. 8x16, 64x72, 152x216...
I bet it looks something like this:
////////
////////
////////
////////
////////
I bet it looks something like this:
////////
////////
////////
////////
////////
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement