Ok, here is my dilemma. I have a loop entitled UpdateScreen that is called to comprise the backbuffer and flip it to the screen. I am using a surface titled ddsMainSurf to hold the background. What I am having problems with is that I have a ten frame animaton loaded into another surface and am trying to load one frame of that into the ddsMainSurf surface in order to load it to the bacbuffer in my UpdateScreen sub. I have tried 'ddrval = ddsMainsurf.BltFast (0 ,0, ddsAnimSurf, rAnim, DDBLTFAST_WAIT)' where rAnim is the RECT of the desired frame, but it just doesn't seem to work. I have found a way to run the animation by overriding the UpdateScreen routine, but it is sloppy and doesn't allow me much flexibility to skip the animation if so desired. Any suggestions on how to load a portion of one surface to another?




Reply With Quote