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
commit2af048e3684d7e56d40aa513489614b8dad0c18a (patch)
tree3fd80b14a303fa619e697e3b13bbd58cb6603d37
parent9ade46e22846f94077dddf844e2a0a23596882fa (diff)
downloadscintilla-mirror-2af048e3684d7e56d40aa513489614b8dad0c18a.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();
}
}