mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-18 13:10:42 +01:00
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…
x
Reference in New Issue
Block a user