Ok, I've implemented the flip... but now I don't have a rtemp RECT. So, how do I tell the function where to blit onto the surface, and the source surface and x/y co-ords? This is what I have so far, but I'm so new to DD/DX I dunno what to do...
Code:
HorBlit = (XArray - 1 - Tactical.XOffset) * 20
VerBlit = ((YArray - Tactical.YOffset) * 10) - 50
rBack.Left = (Map(XPos, YPos, ZArray).Tile - 1) * 20
rBack.Right = Map(XPos, YPos, ZArray).Tile * 20
'rtemp.Left = HorBlit
'rtemp.Top = VerBlit
'rtemp.Right = rtemp.Left + 20
'rtemp.Bottom = rtemp.Top + 50
ddrval = BackBuffer.BltFast(HorBlit, VerBlit, MainSurf, rBack, DDBLTFAST_WAIT)
Thanks,
-Git