I've made a small 3dapp without using OpenGL or DX, just GDI for displaying my buffer on a bitmap wich is copied to the screen.
I'd like to make it compatible with 16bit displays as well as 32 bit ones. Is there anyway I can perform the bitdepth reduction without creating a different sized buffer for 16 bit displays. (I know this isn't the best way to handle it but it would save me a lot of work)
This is the code I use for copying my buffer to a windows bitmap:
And after that I use this to display it on the screen
Any help would be appreciated
BitBlt(hdc, 0, 0, ciWindowWidth, ciWindowHeight, hdcMem, 0, 0, SRCCOPY)