| 420 | } |
| 421 | |
| 422 | HRESULT IDXGISurface1_Wrapper::GetDC(BOOL Discard, HDC* phdc) |
| 423 | { |
| 424 | HRESULT result = {}; |
| 425 | auto& ctx = Context::GetInstance(); |
| 426 | auto callScope = ctx.IncrementCallScope(); |
| 427 | if (callScope == 1) |
| 428 | { |
| 429 | bool skipCall = PreCall<API_IDXGISURFACE1_GETDC>::Run(result, this, Discard, phdc); |
| 430 | if (skipCall) |
| 431 | { |
| 432 | ctx.DecrementCallScope(); |
| 433 | return result; |
| 434 | } |
| 435 | |
| 436 | result = GetWrappedObjectAs<IDXGISurface1>()->GetDC( |
| 437 | Discard, |
| 438 | phdc |
| 439 | ); |
| 440 | |
| 441 | PostCall<API_IDXGISURFACE1_GETDC>::Run(result, this, Discard, phdc); |
| 442 | } |
| 443 | else |
| 444 | { |
| 445 | result = GetWrappedObjectAs<IDXGISurface1>()->GetDC(Discard, phdc); |
| 446 | } |
| 447 | ctx.DecrementCallScope(); |
| 448 | return result; |
| 449 | } |
| 450 | |
| 451 | HRESULT IDXGISurface1_Wrapper::ReleaseDC(RECT* pDirtyRect) |
| 452 | { |
nothing calls this directly
no test coverage detected