ddraw/tests: Make some functions static.
This commit is contained in:
parent
0f305929bc
commit
ab9f028958
|
@ -1025,7 +1025,7 @@ static void EnumTest(void)
|
||||||
IDirectDrawSurface_Release(surface);
|
IDirectDrawSurface_Release(surface);
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT WINAPI SurfaceCounter(IDirectDrawSurface7 *surface, DDSURFACEDESC2 *desc, void *context)
|
static HRESULT WINAPI SurfaceCounter(IDirectDrawSurface7 *surface, DDSURFACEDESC2 *desc, void *context)
|
||||||
{
|
{
|
||||||
UINT *num = context;
|
UINT *num = context;
|
||||||
(*num)++;
|
(*num)++;
|
||||||
|
@ -1418,7 +1418,7 @@ struct compare
|
||||||
UINT mips;
|
UINT mips;
|
||||||
};
|
};
|
||||||
|
|
||||||
HRESULT WINAPI CubeTestLvl2Enum(IDirectDrawSurface7 *surface, DDSURFACEDESC2 *desc, void *context)
|
static HRESULT WINAPI CubeTestLvl2Enum(IDirectDrawSurface7 *surface, DDSURFACEDESC2 *desc, void *context)
|
||||||
{
|
{
|
||||||
UINT *mips = context;
|
UINT *mips = context;
|
||||||
|
|
||||||
|
@ -1430,7 +1430,7 @@ HRESULT WINAPI CubeTestLvl2Enum(IDirectDrawSurface7 *surface, DDSURFACEDESC2 *de
|
||||||
return DDENUMRET_OK;
|
return DDENUMRET_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT WINAPI CubeTestLvl1Enum(IDirectDrawSurface7 *surface, DDSURFACEDESC2 *desc, void *context)
|
static HRESULT WINAPI CubeTestLvl1Enum(IDirectDrawSurface7 *surface, DDSURFACEDESC2 *desc, void *context)
|
||||||
{
|
{
|
||||||
UINT mips = 0;
|
UINT mips = 0;
|
||||||
UINT *num = (UINT *) context;
|
UINT *num = (UINT *) context;
|
||||||
|
|
|
@ -1027,7 +1027,7 @@ out:
|
||||||
ptr = ((D3DTRIANGLE*)(ptr))+1;\
|
ptr = ((D3DTRIANGLE*)(ptr))+1;\
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
HRESULT CALLBACK TextureFormatEnumCallback(LPDDSURFACEDESC lpDDSD, LPVOID lpContext)
|
static HRESULT CALLBACK TextureFormatEnumCallback(LPDDSURFACEDESC lpDDSD, LPVOID lpContext)
|
||||||
{
|
{
|
||||||
if (lpDDSD->ddpfPixelFormat.dwFlags & DDPF_PALETTEINDEXED8) {
|
if (lpDDSD->ddpfPixelFormat.dwFlags & DDPF_PALETTEINDEXED8) {
|
||||||
*(BOOL*)lpContext = TRUE;
|
*(BOOL*)lpContext = TRUE;
|
||||||
|
|
Loading…
Reference in New Issue