From 900a549127a8b251d49d54a60a00caf2fc1e634d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 28 Jun 2005 23:29:04 +0000 Subject: [PATCH] Only overrides BSlider::DrawBar() if compiled for BeOS (would look okay under R5, too, though). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13337 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/diskprobe/ProbeView.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/apps/diskprobe/ProbeView.cpp b/src/apps/diskprobe/ProbeView.cpp index b72c499077..4c274c4008 100644 --- a/src/apps/diskprobe/ProbeView.cpp +++ b/src/apps/diskprobe/ProbeView.cpp @@ -39,10 +39,12 @@ #include -#define DRAW_SLIDER_BAR +#ifndef __HAIKU__ +# define DRAW_SLIDER_BAR // if this is defined, the standard slider bar is replaced with // one that looks exactly like the one in the original DiskProbe // (even in Dano/Zeta) +#endif static const uint32 kMsgSliderUpdate = 'slup'; static const uint32 kMsgPositionUpdate = 'poup'; @@ -278,7 +280,7 @@ PositionSlider::PositionSlider(BRect rect, const char *name, BMessage *message, Reset(); #ifndef DRAW_SLIDER_BAR - rgb_color color = ui_color(B_CONTROL_HIGHLIGHT_COLOR); + rgb_color color = ui_color(B_CONTROL_HIGHLIGHT_COLOR); UseFillColor(true, &color); #endif }