various fixes for macos

This commit is contained in:
gellert 2017-05-23 11:41:59 +02:00
parent df911593d8
commit 039908a244
4 changed files with 14 additions and 14 deletions

View file

@ -1041,14 +1041,14 @@ void OffScreenRenderWidgetHostView::OnPaint(
pos.x(), pos.y(), pos.width(), pos.height()));
}
for (int i = 0; i < damages.size(); i++) {
for (size_t i = 0; i < damages.size(); i++) {
CopyBitmapTo(bitmap, *(bitmaps[i]), damages[i]);
}
damage.Intersect(GetViewBounds());
callback_.Run(damage, bitmap);
for (int i = 0; i < damages.size(); i++) {
for (size_t i = 0; i < damages.size(); i++) {
CopyBitmapTo(bitmap, originals[i], damages[i]);
}
}