Log error code from BitBlt failure

This commit is contained in:
Richard Stanway 2013-07-22 20:56:22 -04:00
parent 6449ffd283
commit 4febb06b9c

View File

@ -348,7 +348,7 @@ public:
//CAPTUREBLT causes mouse flicker, so make capturing layered optional //CAPTUREBLT causes mouse flicker, so make capturing layered optional
if(!BitBlt(hDC, 0, 0, width, height, hCaptureDC, captureRect.left, captureRect.top, bCaptureLayered ? SRCCOPY|CAPTUREBLT : SRCCOPY)) if(!BitBlt(hDC, 0, 0, width, height, hCaptureDC, captureRect.left, captureRect.top, bCaptureLayered ? SRCCOPY|CAPTUREBLT : SRCCOPY))
{ {
RUNONCE AppWarning(TEXT("Capture BitBlt failed.. just so you know")); RUNONCE AppWarning(TEXT("Capture BitBlt failed (%d).. just so you know"), GetLastError());
} }
} }