문제

Can lpDDSrcSurface be NULL while calling IDirectDrawSurface7::Blt?

dest_surf->Blt(&dest_rect, NULL, NULL, blt_flags, NULL);

Seems like the code above simply skips blitting but MSDN says nothing about it however.

도움이 되었습니까?

해결책

From the syntax side, that's OK to pass NULL, but in practice, it does not make sense, if the source surface is NULL, where did you copy from?

You can check the return value of Blt to see what happened if you pass NULL to source surface.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top