Fixed LowColor() of "background" view. Seems this was always wrong, but now we

are running without offscreen view, and this caused dark slider background,
since LowColor() was unintentionally B_TRANSPARENT_COLOR. Fixes #5323.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35284 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2010-01-25 13:53:26 +00:00
parent b4e5e49823
commit 5993482bf5
+2 -2
View File
@@ -392,7 +392,7 @@ BSlider::AttachedToWindow()
BView* view = OffscreenView();
if (view && view->LockLooper()) {
view->SetViewColor(B_TRANSPARENT_COLOR);
view->SetLowColor(ViewColor());
view->SetLowColor(LowColor());
view->UnlockLooper();
}
@@ -827,7 +827,7 @@ BSlider::Draw(BRect updateRect)
if (fOffScreenBits->Lock()) {
fOffScreenView->SetViewColor(ViewColor());
fOffScreenView->SetLowColor(ViewColor());
fOffScreenView->SetLowColor(LowColor());
#endif
if (drawBackground && background.Frame().IsValid())