Ticket #7052: Deskbar_BarMenuTitle_cpp_style_fix.diff

File Deskbar_BarMenuTitle_cpp_style_fix.diff, 1.7 KB (added by jscipione, 13 years ago)
  • src/apps/deskbar/BarMenuTitle.cpp

    diff --git a/src/apps/deskbar/BarMenuTitle.cpp b/src/apps/deskbar/BarMenuTitle.cpp
    index df8b0d2..84c2d91 100644
    a b Except as contained in this notice, the name of Be Incorporated shall not be  
    2626used in advertising or otherwise to promote the sale, use or other dealings in
    2727this Software without prior written authorization from Be Incorporated.
    2828
    29 Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered trademarks
    30 of Be Incorporated in the United States and other countries. Other brand product
    31 names are registered trademarks or trademarks of their respective holders.
     29Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered
     30trademarks of Be Incorporated in the United States and other countries. Other
     31brand product names are registered trademarks or trademarks of their respective
     32holders.
    3233All rights reserved.
    3334*/
    3435
    TBarMenuTitle::DrawContent()  
    116117
    117118    if (be_control_look != NULL) {
    118119        menu->SetDrawingMode(B_OP_ALPHA);
    119    
     120
    120121        if (fIcon != NULL) {
    121122            BRect dstRect(fIcon->Bounds());
    122123            dstRect.OffsetTo(frame.LeftTop());
    123124            dstRect.OffsetBy(rintf(((frame.Width() - dstRect.Width()) / 2)
    124125                - 1.0f), rintf(((frame.Height() - dstRect.Height()) / 2)
    125126                - 0.0f));
    126    
     127
    127128            menu->DrawBitmapAsync(fIcon, dstRect);
    128129        }
    129130        return;
    TBarMenuTitle::Invoke(BMessage* message)  
    200201        BLooper* looper = barview->Looper();
    201202        if (looper->Lock()) {
    202203            // tell barview to add the refs to the be menu
    203             barview->HandleBeMenu(NULL);           
     204            barview->HandleBeMenu(NULL);
    204205            looper->Unlock();
    205206        }
    206207    }
    207        
     208
    208209    return BMenuItem::Invoke(message);
    209210}
    210211