fix linting error
This commit is contained in:
parent
356d0520ae
commit
00d9baa605
1 changed files with 3 additions and 5 deletions
|
@ -571,9 +571,8 @@ void NativeWindowViews::SetContentSizeConstraints(
|
||||||
|
|
||||||
void NativeWindowViews::SetResizable(bool resizable) {
|
void NativeWindowViews::SetResizable(bool resizable) {
|
||||||
#if defined(OS_WIN)
|
#if defined(OS_WIN)
|
||||||
if (has_frame()) {
|
if (has_frame())
|
||||||
FlipWindowStyle(GetAcceleratedWidget(), resizable, WS_THICKFRAME);
|
FlipWindowStyle(GetAcceleratedWidget(), resizable, WS_THICKFRAME);
|
||||||
}
|
|
||||||
#elif defined(USE_X11)
|
#elif defined(USE_X11)
|
||||||
if (resizable != resizable_) {
|
if (resizable != resizable_) {
|
||||||
// On Linux there is no "resizable" property of a window, we have to set
|
// On Linux there is no "resizable" property of a window, we have to set
|
||||||
|
@ -595,11 +594,10 @@ void NativeWindowViews::SetResizable(bool resizable) {
|
||||||
|
|
||||||
bool NativeWindowViews::IsResizable() {
|
bool NativeWindowViews::IsResizable() {
|
||||||
#if defined(OS_WIN)
|
#if defined(OS_WIN)
|
||||||
if (has_frame()) {
|
if (has_frame())
|
||||||
return ::GetWindowLong(GetAcceleratedWidget(), GWL_STYLE) & WS_THICKFRAME;
|
return ::GetWindowLong(GetAcceleratedWidget(), GWL_STYLE) & WS_THICKFRAME;
|
||||||
} else {
|
else
|
||||||
return CanResize();
|
return CanResize();
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
return CanResize();
|
return CanResize();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue