PocketMatrix forums

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

Feeling Stupid

Okay, this is probably a really stupid (set) of questions, but I might as well ask them.

I am porting an application which has it's own back buffer. It's an 8bit paletted display, and the palette information is given in 24bit colour. It doesn't change all that frequently I would have thought, so it's a relatively static table.

At the moment, the back buffer is normalised (as in, palette lookups and stuff) onto my own buffer, and my own code then performs simplistic fixed point scaling.

Now, as I want this to be portable, my current E-125 specific code is not really going to run on an Ipaq, or something with a different step value (given that I've kinda hardcoded it).

SO. Realistically, I want to do a combined palette lookup and scaling blit to the background. Is this possible?

I'm doing it from a relatively normal-ish block of data, but this is portable code, and it's not rendering to a surface. Can I write accessors for it in an easy way? It's just a block of memory with standard values in it, and it has a height, width etc.

Does anybody have any other suggestions?

Also, totally off topic, has anybody played properly with integrating MFC into totally-non MFC projects? I want to use MFC to implement dialogs in this, since it seems a pointless pain in the bum to hardcode all of the dialogs when I can cheat and just use MFC for that. Has anybody played with how you can switch into an MFC event-loop and then out of it again?

Answers on a postcard....