diff --git a/CefSharp.Core/Internals/RenderClientAdapter.h b/CefSharp.Core/Internals/RenderClientAdapter.h index f6eac8794..a031b8b97 100644 --- a/CefSharp.Core/Internals/RenderClientAdapter.h +++ b/CefSharp.Core/Internals/RenderClientAdapter.h @@ -94,14 +94,11 @@ namespace CefSharp if(bitmapInfo->DirtyRectSupport) { - auto rects = gcnew List(dirtyRects.size()); + //NOTE: According to https://bitbucket.org/chromiumembedded/branches-2171-cef3/commits/ce984ddff3268a50cf9967487327e1257015b98c + // There is only one rect now that's a union of all dirty regions. API Still passes in a vector - for each(CefRect r in dirtyRects) - { - rects->Add(CefDirtyRect(r.x, r.y, r.width, r.height)); - } - - bitmapInfo->DirtyRects = rects; + CefRect r = dirtyRects.front(); + bitmapInfo->DirtyRect = CefDirtyRect(r.x, r.y, r.width, r.height); } auto backBufferHandle = (HANDLE)bitmapInfo->BackBufferHandle; diff --git a/CefSharp.Wpf/CefSharp.Wpf.csproj b/CefSharp.Wpf/CefSharp.Wpf.csproj index 79cab498c..ebc386349 100644 --- a/CefSharp.Wpf/CefSharp.Wpf.csproj +++ b/CefSharp.Wpf/CefSharp.Wpf.csproj @@ -93,7 +93,7 @@ - + Code @@ -101,9 +101,10 @@ + - - + + @@ -115,6 +116,7 @@ CefSharp +