PDA

View Full Version : DirectDraw strikes again!



Crisp_N_Dry
17-12-2004, 09:06 PM
Already posted on the temp forums but I think it's been deleted so I'll write it again.

I've got a 256 palettised iso engine. I've loaded my palette from a standalone bitmap file and I've loaded my sprite images into surfaces using DDLoadBitmap that is part of ddutils.pas which comes with the headers. Anyway, when the sprites are drawn to screen the colors indices for them have been rearranged by the computer to match the colors in my palette. I do not want this to happen and I can't figure out why it is happening. Why would directdraw match the colours from one bitmap up to the closest matching palette entry when I haven't called any color match routines throughout the whole code. Anybody help me (Particuarly you Clootie, you're a mean machine when it comes to the DirectX conversions)?