PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

DirectX Palette Question

Ok, if you read my thread in General, you will know that I am making a game for language arts. Well, my problem is that the code I am using to set up the palette isn't working correctly (the colors look like crap, unless I use a custom palette that I created in Photoshop, but that is a real hassle. Since it is only tile based, I would like to be able to use the standard 256 color palette that Paintbrush has built in. Could someone please help me out with a sniplet of code that would accomplish this task. Thanks a lot. I am still learning directX, and this would be a very useful piece of code for me.
CreateHalftonePalette.