Ticket #484: 484_menu_fixes.diff

File 484_menu_fixes.diff, 1.0 KB (added by leavengood, 12 years ago)

Small menu changes to remove flickering

  • src/kits/interface/Menu.cpp

    diff --git a/src/kits/interface/Menu.cpp b/src/kits/interface/Menu.cpp
    index c869206..6905c15 100644
    a b BMenu::_InitData(BMessage* archive)  
    14391439    fLayoutData->lastResizingMode = ResizingMode();
    14401440
    14411441    SetLowColor(sMenuInfo.background_color);
    1442     SetViewColor(sMenuInfo.background_color);
     1442    SetViewColor(B_TRANSPARENT_COLOR);
    14431443
    14441444    fTriggerEnabled = sMenuInfo.triggers_always_shown;
    14451445
  • src/kits/interface/MenuBar.cpp

    diff --git a/src/kits/interface/MenuBar.cpp b/src/kits/interface/MenuBar.cpp
    index dfe13b4..ef9171d 100644
    a b struct menubar_data {  
    4747BMenuBar::BMenuBar(BRect frame, const char* title, uint32 resizeMask,
    4848        menu_layout layout, bool resizeToFit)
    4949    :
    50     BMenu(frame, title, resizeMask, B_WILL_DRAW | B_FRAME_EVENTS, layout,
     50    BMenu(frame, title, resizeMask, B_WILL_DRAW | B_FRAME_EVENTS | B_FULL_UPDATE_ON_RESIZE, layout,
    5151        resizeToFit),
    5252    fBorder(B_BORDER_FRAME),
    5353    fTrackingPID(-1),