Format code with clang-format

This commit is contained in:
Heilig Benedek 2018-05-12 19:51:19 +02:00
parent eae0674f61
commit f1fd457411

View file

@ -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