diff options
Diffstat (limited to 'src/platform/graphics/direct2d/Painter.cpp')
| -rw-r--r-- | src/platform/graphics/direct2d/Painter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platform/graphics/direct2d/Painter.cpp b/src/platform/graphics/direct2d/Painter.cpp index 1744a638..79401f6e 100644 --- a/src/platform/graphics/direct2d/Painter.cpp +++ b/src/platform/graphics/direct2d/Painter.cpp @@ -133,7 +133,7 @@ void D2DDeviceContextPainter::PushLayer(const Rect& bounds) { CheckValidation(); Microsoft::WRL::ComPtr<ID2D1Layer> layer; - ThrowIfFailed(device_context_->CreateLayer(&layer)); + CheckHResult(device_context_->CreateLayer(&layer)); device_context_->PushLayer(D2D1::LayerParameters(Convert(bounds)), layer.Get()); @@ -167,7 +167,7 @@ void D2DDeviceContextPainter::PopState() { void D2DDeviceContextPainter::EndDraw() { if (is_drawing_) { is_drawing_ = false; - ThrowIfFailed(device_context_->EndDraw()); + CheckHResult(device_context_->EndDraw()); DoEndDraw(); } } |
