[haiku-commits] r40147 - haiku/trunk/src/kits/tracker

  • From: axeld@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 8 Jan 2011 13:38:13 +0100 (CET)

Author: axeld
Date: 2011-01-08 13:38:13 +0100 (Sat, 08 Jan 2011)
New Revision: 40147
Changeset: http://dev.haiku-os.org/changeset/40147

Modified:
   haiku/trunk/src/kits/tracker/BackgroundImage.cpp
Log:
* Fixed wrong indentation of the if-clause introduced in r40144.
* Automatic whitespace cleanup.


Modified: haiku/trunk/src/kits/tracker/BackgroundImage.cpp
===================================================================
--- haiku/trunk/src/kits/tracker/BackgroundImage.cpp    2011-01-08 11:03:29 UTC 
(rev 40146)
+++ haiku/trunk/src/kits/tracker/BackgroundImage.cpp    2011-01-08 12:38:13 UTC 
(rev 40147)
@@ -66,7 +66,7 @@
        attr_info info;
        if (node->GetAttrInfo(kBackgroundImageInfo, &info) != B_OK)
                return NULL;
-       
+
        BMessage container;
        char *buffer = new char [info.size];
 
@@ -88,7 +88,7 @@
                BPoint offset;
                BBitmap *bitmap = NULL;
 
-               if (container.FindString(kBackgroundImageInfoPath, index, 
&path) == B_OK) {     
+               if (container.FindString(kBackgroundImageInfoPath, index, 
&path) == B_OK) {
                        bitmap = BTranslationUtils::GetBitmap(path);
                        if (!bitmap) {
                                PRINT(("failed to load background bitmap from 
path\n"));
@@ -146,14 +146,14 @@
 }
 
 
-void 
+void
 BackgroundImage::Add(BackgroundImageInfo *info)
 {
        fBitmapForWorkspaceList.AddItem(info);
 }
 
 
-void 
+void
 BackgroundImage::Show(BView *view, int32 workspace)
 {
        fView = view;
@@ -167,7 +167,7 @@
        }
 }
 
-void 
+void
 BackgroundImage::Show(BackgroundImageInfo *info, BView *view)
 {
        BPoseView *poseView = dynamic_cast<BPoseView *>(view);
@@ -200,7 +200,7 @@
                case kScaledToFit:
                        if (fIsDesktop) {
                                if (BRectRatio(destinationBitmapBounds)
-                                       >= BRectRatio(viewBounds)) {
+                                               >= BRectRatio(viewBounds)) {
                                        float overlap = 
BRectHorizontalOverlap(viewBounds,
                                                destinationBitmapBounds);
                                        destinationBitmapBounds.Set(-overlap, 0,
@@ -227,7 +227,7 @@
                        tile = B_TILE_BITMAP;
                        break;
        }
-       
+
        // switch to the bitmap and force a redraw
        view->SetViewBitmap(info->fBitmap, bitmapBounds, 
destinationBitmapBounds,
                followFlags, tile);
@@ -259,7 +259,7 @@
 }
 
 
-void 
+void
 BackgroundImage::Remove()
 {
        if (fShowingBitmap) {
@@ -280,7 +280,7 @@
 
        for ( ; workspace; workspace--)
                workspaceMask *= 2;
-       
+
        int32 count = fBitmapForWorkspaceList.CountItems();
 
        // do a simple lookup for the most likely candidate bitmap -
@@ -294,11 +294,11 @@
                if (info->fWorkspace & workspaceMask)
                        result = info;
        }
-       
+
        return result;
 }
 
-void 
+void
 BackgroundImage::WorkspaceActivated(BView *view, int32 workspace, bool state)
 {
        if (!fIsDesktop)
@@ -308,7 +308,7 @@
        if (!state)
                // we only care comming into a new workspace, not leaving one
                return;
-               
+
        BackgroundImageInfo *info = ImageInfoForWorkspace(workspace);
 
        if (info != fShowingBitmap) {
@@ -324,12 +324,12 @@
        }
 }
 
-void 
+void
 BackgroundImage::ScreenChanged(BRect, color_space)
 {
        if (!fIsDesktop || !fShowingBitmap)
                return;
-       
+
        if (fShowingBitmap->fMode == kCentered) {
                BRect viewBounds(fView->Bounds());
                BRect bitmapBounds(fShowingBitmap->fBitmap->Bounds());
@@ -352,7 +352,7 @@
                oldBackgroundImage->Remove();
                delete oldBackgroundImage;
        }
-       
+
        BackgroundImage *result = GetBackgroundImage(fromNode, desktop);
        if (result && poseView->ViewMode() != kListMode)
                result->Show(poseView, current_workspace());


Other related posts:

  • » [haiku-commits] r40147 - haiku/trunk/src/kits/tracker - axeld