Windows: Fix non x2 HiDPI OSR paint crop (issue #2299)
This commit is contained in:
parent
6a9a51222e
commit
56557833d9
|
@ -659,8 +659,8 @@ gfx::Size CefRenderWidgetHostViewOSR::GetRequestedRendererSize() const {
|
|||
}
|
||||
|
||||
gfx::Size CefRenderWidgetHostViewOSR::GetPhysicalBackingSize() const {
|
||||
return gfx::ConvertSizeToPixel(current_device_scale_factor_,
|
||||
GetRequestedRendererSize());
|
||||
return gfx::ScaleToCeiledSize(GetRequestedRendererSize(),
|
||||
current_device_scale_factor_);
|
||||
}
|
||||
|
||||
void CefRenderWidgetHostViewOSR::CopyFromSurface(
|
||||
|
|
Loading…
Reference in New Issue