Format code with clang-format
This commit is contained in:
parent
eae0674f61
commit
f1fd457411
1 changed files with 10 additions and 11 deletions
|
@ -25,20 +25,19 @@ namespace atom {
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
#if defined(OS_WIN)
|
#if defined(OS_WIN)
|
||||||
gfx::Size GetExpandedWindowSize(const NativeWindow* window, gfx::Size size) {
|
gfx::Size GetExpandedWindowSize(const NativeWindow* window, gfx::Size size) {
|
||||||
if (!window->transparent() || !ui::win::IsAeroGlassEnabled())
|
if (!window->transparent() || !ui::win::IsAeroGlassEnabled())
|
||||||
return size;
|
return size;
|
||||||
|
|
||||||
gfx::Size min_size = display::win::ScreenWin::ScreenToDIPSize(
|
gfx::Size min_size = display::win::ScreenWin::ScreenToDIPSize(
|
||||||
window->GetAcceleratedWidget(), gfx::Size(64, 64));
|
window->GetAcceleratedWidget(), gfx::Size(64, 64));
|
||||||
|
|
||||||
// Some AMD drivers can't display windows that are less than 64x64 pixels,
|
// Some AMD drivers can't display windows that are less than 64x64 pixels,
|
||||||
// so expand them to be at least that size. http://crbug.com/286609
|
// so expand them to be at least that size. http://crbug.com/286609
|
||||||
gfx::Size expanded(
|
gfx::Size expanded(std::max(size.width(), min_size.width()),
|
||||||
std::max(size.width(), min_size.width()),
|
std::max(size.height(), min_size.height()));
|
||||||
std::max(size.height(), min_size.height()));
|
return expanded;
|
||||||
return expanded;
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
Loading…
Reference in a new issue