Ticket #551: ContainerWindow.cpp.diff
File ContainerWindow.cpp.diff, 774 bytes (added by , 18 years ago) |
---|
-
ContainerWindow.cpp
333 333 void 334 334 DraggableContainerIcon::AttachedToWindow() 335 335 { 336 SetViewColor( ui_color(B_MENU_BACKGROUND_COLOR));336 SetViewColor(Parent()->ViewColor()); 337 337 FrameMoved(BPoint(0, 0)); 338 338 // this decides whether to hide the icon or not 339 339 } … … 503 503 return; 504 504 505 505 // Draw the icon, straddling the border 506 #ifdef __HAIKU__ 507 SetDrawingMode(B_OP_ALPHA); 508 #else 506 509 SetDrawingMode(B_OP_OVER); 510 #endif 507 511 float iconOffset = (Bounds().Width() - B_MINI_ICON) / 2; 508 512 IconCache::sIconCache->Draw(window->TargetModel(), this, 509 513 BPoint(iconOffset, iconOffset), kNormalIcon, B_MINI_ICON, true);