From 56557833d9955dc36ec0af16db050bc5df8ae650 Mon Sep 17 00:00:00 2001 From: Andrei Kurushin Date: Mon, 18 Dec 2017 19:37:36 +0000 Subject: [PATCH] Windows: Fix non x2 HiDPI OSR paint crop (issue #2299) --- libcef/browser/osr/render_widget_host_view_osr.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcef/browser/osr/render_widget_host_view_osr.cc b/libcef/browser/osr/render_widget_host_view_osr.cc index e9d7e8874..9b0667903 100644 --- a/libcef/browser/osr/render_widget_host_view_osr.cc +++ b/libcef/browser/osr/render_widget_host_view_osr.cc @@ -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(