Fix OSR resize issue with DPI scaling (fixes issue #2733)

This commit is contained in:
Vladislav 2020-04-27 16:48:06 +00:00 committed by Marshall Greenblatt
parent be6af15754
commit dafce45e49
1 changed files with 2 additions and 2 deletions

View File

@ -1399,8 +1399,8 @@ void CefRenderWidgetHostViewOSR::UpdateFrameRate() {
}
gfx::Size CefRenderWidgetHostViewOSR::SizeInPixels() {
return gfx::ConvertSizeToPixel(current_device_scale_factor_,
GetViewBounds().size());
return gfx::ScaleToCeiledSize(GetViewBounds().size(),
current_device_scale_factor_);
}
#if defined(OS_MACOSX)