[haiku-commits] Change in haiku[master]: MacDecorator: Whitespace style changes only

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 9 Aug 2020 03:37:25 +0000

From John Scipione <jscipione@xxxxxxxxx>:

John Scipione has uploaded this change for review. ( 
https://review.haiku-os.org/c/haiku/+/3141 ;)


Change subject: MacDecorator: Whitespace style changes only
......................................................................

MacDecorator: Whitespace style changes only
---
M src/add-ons/decorators/MacDecorator/MacDecorator.cpp
M src/add-ons/decorators/MacDecorator/MacDecorator.h
2 files changed, 16 insertions(+), 12 deletions(-)



  git pull ssh://git.haiku-os.org:22/haiku refs/changes/41/3141/1

diff --git a/src/add-ons/decorators/MacDecorator/MacDecorator.cpp 
b/src/add-ons/decorators/MacDecorator/MacDecorator.cpp
index 3c4d5ae..7c6eaa6 100644
--- a/src/add-ons/decorators/MacDecorator/MacDecorator.cpp
+++ b/src/add-ons/decorators/MacDecorator/MacDecorator.cpp
@@ -148,16 +148,19 @@
                                if (highlight != RegionHighlight(region))
                                        memset(&tab->closeBitmaps, 0, 
sizeof(tab->closeBitmaps));
                                break;
+
                        case REGION_MINIMIZE_BUTTON:
                                if (highlight != RegionHighlight(region)) {
                                        memset(&tab->minimizeBitmaps, 0,
                                                sizeof(tab->minimizeBitmaps));
                                }
                                break;
+
                        case REGION_ZOOM_BUTTON:
                                if (highlight != RegionHighlight(region))
                                        memset(&tab->zoomBitmaps, 0, 
sizeof(tab->zoomBitmaps));
                                break;
+
                        default:
                                break;
                }
@@ -184,21 +187,22 @@
                        case B_MODAL_WINDOW_LOOK:
                                fBorderWidth = kDefaultBorderWidth;
                                break;
-
+
                        case B_TITLED_WINDOW_LOOK:
                        case B_DOCUMENT_WINDOW_LOOK:
                                hasTab = true;
                                fBorderWidth = kDefaultBorderWidth;
                                break;
+
                        case B_FLOATING_WINDOW_LOOK:
                                hasTab = true;
                                fBorderWidth = 3;
                                break;
-
+
                        case B_BORDERED_WINDOW_LOOK:
                                fBorderWidth = 1;
                                break;
-
+
                        default:
                                fBorderWidth = 0;
                }
@@ -352,7 +356,7 @@
                                if (fTopTab->look == B_MODAL_WINDOW_LOOK) {
                                        offset = r.LeftTop();
                                        pt2 = r.RightTop();
-
+
                                        fDrawingEngine->StrokeLine(offset, pt2, 
fFrameLowerColor);
                                        offset.x++;
                                        offset.y++;
@@ -364,25 +368,25 @@
                                        offset.y++;
                                        pt2.x--;
                                        pt2.y++;
-
+
                                        fDrawingEngine->StrokeLine(offset, pt2, 
fFrameMidColor);
                                        offset.x++;
                                        offset.y++;
                                        pt2.x--;
                                        pt2.y++;
-
+
                                        fDrawingEngine->StrokeLine(offset, pt2, 
fFrameMidColor);
                                        offset.x++;
                                        offset.y++;
                                        pt2.x--;
                                        pt2.y++;
-
+
                                        fDrawingEngine->StrokeLine(offset, pt2, 
fFrameLowColor);
                                        offset.x++;
                                        offset.y++;
                                        pt2.x--;
                                        pt2.y++;
-
+
                                        fDrawingEngine->StrokeLine(offset, pt2, 
fFrameLowerColor);
                                } else {
                                        // Some odd stuff here where the title 
bar is melded into the
@@ -390,12 +394,12 @@
                                        // so we draw this bottom up
                                        offset = topleftpt;
                                        pt2 = toprightpt;
-
+
                                        fDrawingEngine->StrokeLine(offset, pt2, 
fFrameLowerColor);
                                        offset.y--;
                                        offset.x++;
                                        pt2.y--;
-
+
                                        fDrawingEngine->StrokeLine(offset, pt2, 
fFrameLowColor);
                                }

diff --git a/src/add-ons/decorators/MacDecorator/MacDecorator.h 
b/src/add-ons/decorators/MacDecorator/MacDecorator.h
index 551aeef..b2f70cb 100644
--- a/src/add-ons/decorators/MacDecorator/MacDecorator.h
+++ b/src/add-ons/decorators/MacDecorator/MacDecorator.h
@@ -22,14 +22,14 @@

 protected:
        virtual Decorator*                      
_AllocateDecorator(DesktopSettings& settings,
-                                                                       BRect 
rect,     Desktop* desktop);
+                                                                       BRect 
rect, Desktop* desktop);
 };


 class MacDecorator: public SATDecorator {
 public:
                                                                
MacDecorator(DesktopSettings& settings,
-                                                                       BRect 
frame,    Desktop* desktop);
+                                                                       BRect 
frame, Desktop* desktop);
        virtual                                         ~MacDecorator();

                        void                            Draw(BRect updateRect);

--
To view, visit https://review.haiku-os.org/c/haiku/+/3141
To unsubscribe, or for help writing mail filters, visit 
https://review.haiku-os.org/settings

Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: Iae2533e553df66945de8394b4678d487ff9de60e
Gerrit-Change-Number: 3141
Gerrit-PatchSet: 1
Gerrit-Owner: John Scipione <jscipione@xxxxxxxxx>
Gerrit-MessageType: newchange

Other related posts:

  • » [haiku-commits] Change in haiku[master]: MacDecorator: Whitespace style changes only - Gerrit