* use rgba32 bitmap to get rid of the anoying slider

background while using a different panel background color



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28710 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Karsten Heimrich 2008-11-21 19:05:14 +00:00
parent c96059e055
commit cee0c5c7b5
1 changed files with 2 additions and 2 deletions

View File

@ -368,7 +368,7 @@ BSlider::AttachedToWindow()
}
if (!fOffScreenBits) {
fOffScreenBits = new BBitmap(bounds, B_CMAP8, true, false);
fOffScreenBits = new BBitmap(bounds, B_RGBA32, true, false);
if (fOffScreenBits && fOffScreenView)
fOffScreenBits->AddChild(fOffScreenView);
@ -451,7 +451,7 @@ BSlider::FrameResized(float w,float h)
fOffScreenView->ResizeTo(bounds.Width(), bounds.Height());
fOffScreenBits = new BBitmap(Bounds(), B_CMAP8, true, false);
fOffScreenBits = new BBitmap(Bounds(), B_RGBA32, true, false);
fOffScreenBits->AddChild(fOffScreenView);
}
#endif