Original Post
I have been stuck on this problem for a week and am extremely frustrated
for (int y=0; y < 480; y++)
{
memcpy(&back_buffer[y*(ddsd.lPitch/4)],
&bitmap16bit.buffer[y*640*2],
640*2); // bytes to copy
}
^ Does anyone know how to change the above code to correctly copy a 16-bit bitmap to a secondary surface in 640 x 480 x 32 bit resolution? When I blit the image to the display, the image is distorted and the colors are screwed up. Please Help!