Ticket #551: ContainerWindow.cpp.diff

File ContainerWindow.cpp.diff, 774 bytes (added by jonas.kirilla, 18 years ago)

Patch

  • ContainerWindow.cpp

     
    333333void
    334334DraggableContainerIcon::AttachedToWindow()
    335335{
    336     SetViewColor(ui_color(B_MENU_BACKGROUND_COLOR));
     336    SetViewColor(Parent()->ViewColor());
    337337    FrameMoved(BPoint(0, 0));
    338338        // this decides whether to hide the icon or not
    339339}
     
    503503        return;
    504504
    505505    // Draw the icon, straddling the border
     506#ifdef __HAIKU__
     507    SetDrawingMode(B_OP_ALPHA);
     508#else
    506509    SetDrawingMode(B_OP_OVER);
     510#endif
    507511    float iconOffset = (Bounds().Width() - B_MINI_ICON) / 2;
    508512    IconCache::sIconCache->Draw(window->TargetModel(), this,
    509513        BPoint(iconOffset, iconOffset), kNormalIcon, B_MINI_ICON, true);