Fix cpp linter errors
This commit is contained in:
parent
9e0547b98f
commit
0244a73c49
1 changed files with 4 additions and 4 deletions
|
@ -16,10 +16,10 @@ namespace {
|
||||||
#if defined(OS_WIN)
|
#if defined(OS_WIN)
|
||||||
gfx::Rect SubtractBorderSize(gfx::Rect bounds) {
|
gfx::Rect SubtractBorderSize(gfx::Rect bounds) {
|
||||||
gfx::Point borderSize = gfx::Point(
|
gfx::Point borderSize = gfx::Point(
|
||||||
GetSystemMetrics(SM_CXSIZEFRAME) - 1, // width
|
GetSystemMetrics(SM_CXSIZEFRAME) - 1, // width
|
||||||
GetSystemMetrics(SM_CYSIZEFRAME) - 1 // height
|
GetSystemMetrics(SM_CYSIZEFRAME) - 1); // height
|
||||||
);
|
gfx::Point dpiAdjustedSize =
|
||||||
gfx::Point dpiAdjustedSize = display::win::ScreenWin::ScreenToDIPPoint(borderSize);
|
display::win::ScreenWin::ScreenToDIPPoint(borderSize);
|
||||||
|
|
||||||
bounds.set_x(bounds.x() + dpiAdjustedSize.x());
|
bounds.set_x(bounds.x() + dpiAdjustedSize.x());
|
||||||
bounds.set_y(bounds.y() + dpiAdjustedSize.y());
|
bounds.set_y(bounds.y() + dpiAdjustedSize.y());
|
||||||
|
|
Loading…
Reference in a new issue