Fix OSR resize issue with DPI scaling (fixes issue #2733)
This commit is contained in:
parent
be6af15754
commit
dafce45e49
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue