aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-10-07 15:06:38 +1100
committerNeil <nyamatongwe@gmail.com>2014-10-07 15:06:38 +1100
commit9596205a342babd77723787c06d72392dda31fda (patch)
tree08e958b1bd5ed3ddc1333eac3eafc8efb81b6833
parent861c60e49b2b9801480072c61d5dcd223fb6f4d5 (diff)
downloadscintilla-mirror-9596205a342babd77723787c06d72392dda31fda.tar.gz
Trace failures to flush when drawing bitmaps in Direct2D.
-rw-r--r--win32/PlatWin.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index fa37ac7fe..7ac5826f7 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -1599,7 +1599,10 @@ void SurfaceD2D::Copy(PRectangle rc, Point from, Surface &surfaceSource) {
D2D1_RECT_F rcSource = {from.x, from.y, from.x + rc.Width(), from.y + rc.Height()};
pRenderTarget->DrawBitmap(pBitmap, rcDestination, 1.0f,
D2D1_BITMAP_INTERPOLATION_MODE_NEAREST_NEIGHBOR, rcSource);
- pRenderTarget->Flush();
+ hr = pRenderTarget->Flush();
+ if (FAILED(hr)) {
+ Platform::DebugPrintf("Failed Flush 0x%x\n", hr);
+ }
pBitmap->Release();
}
}