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 {
|
gfx::Size CefRenderWidgetHostViewOSR::GetPhysicalBackingSize() const {
|
||||||
return gfx::ConvertSizeToPixel(current_device_scale_factor_,
|
return gfx::ScaleToCeiledSize(GetRequestedRendererSize(),
|
||||||
GetRequestedRendererSize());
|
current_device_scale_factor_);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CefRenderWidgetHostViewOSR::CopyFromSurface(
|
void CefRenderWidgetHostViewOSR::CopyFromSurface(
|
||||||
|
|
Loading…
Reference in New Issue