From 98d4499e6aaac128ed72d78332c44c9a7671de53 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 30 Jun 2026 22:34:07 +0200 Subject: [PATCH] Reformat recently added wxOSX border code to follow wx style Put "{" opening a block on its own line. No real changes. --- src/osx/window_osx.cpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/osx/window_osx.cpp b/src/osx/window_osx.cpp index 76efdff7d9..252ed51639 100644 --- a/src/osx/window_osx.cpp +++ b/src/osx/window_osx.cpp @@ -946,7 +946,8 @@ void wxWindowMac::MacInvalidateBorders() wxRect topupdate( tx-outerBorder, ty-outerBorder, tw + 2 * outerBorder, outerBorder ); wxRect bottomupdate( tx-outerBorder, ty + th, tw + 2 * outerBorder, outerBorder ); - if (GetParent()) { + if (GetParent()) + { GetParent()->GetPeer()->SetNeedsDisplay(&leftupdate); GetParent()->GetPeer()->SetNeedsDisplay(&rightupdate); GetParent()->GetPeer()->SetNeedsDisplay(&topupdate); @@ -2328,23 +2329,28 @@ wxMacBorderSize wxWindowMac::MacGetBorderSize() const return border; } -long wxWindowMac::MacGetLeftBorderSize() const { +long wxWindowMac::MacGetLeftBorderSize() const +{ return MacGetBorderSize().left; } -long wxWindowMac::MacGetRightBorderSize() const { +long wxWindowMac::MacGetRightBorderSize() const +{ return MacGetBorderSize().right; } -long wxWindowMac::MacGetTopBorderSize() const { +long wxWindowMac::MacGetTopBorderSize() const +{ return MacGetBorderSize().top; } -long wxWindowMac::MacGetBottomBorderSize() const { +long wxWindowMac::MacGetBottomBorderSize() const +{ return MacGetBorderSize().bottom; } -void wxWindowMac::MacInvalidateInsetCache() const { +void wxWindowMac::MacInvalidateInsetCache() const +{ if ( GetPeer() ) GetPeer()->InvalidateLayoutInset(); }