I'm having some trouble with Intersect in GD 3.50. The following line:
CGapiSurface::Intersect(loc.x, loc.y, pBlitSurface, NULL, x * CMG_TILE_WIDTH, y * CMG_TILE_HEIGHT, pCurrentLevelTiles[*boardData], NULL, &colPoint);
...results in the error:
c:\temp\etc\kgarcade2\source\common\cplatformerplayer.cpp(191) : error C2660: 'Intersect' : function does not take 9 parameters
Now, I'm looking at the docs that shipped with this, and I see:
CGapiSurface::Intersect
static HRESULT Intersect(
LONG x1, LONG y1,
CGapiSurface* pSrcSurface1, RECT* pSrcRect1,
LONG x2, LONG y2,
CGapiSurface* pSrcSurface2, RECT* pSrcRect2,
POINT* pIntersection);
I count nine parameters there. Now, strangely, the following compiles:
pBlitSurface->Intersect(loc.x, loc.y, NULL, pCurrentLevelTiles[*boardData], x * CMG_TILE_WIDTH, y * CMG_TILE_HEIGHT, NULL, &colPoint);
I'm sure this is something stupid on my part, but I'm at a loss to spot it. Anyone? Thanks!
Frank