warning fixes, one might also want to change hardcoded colors into system colors, but that's later on...

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24372 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Maurice Kalinowski 2008-03-12 19:36:06 +00:00
parent 092c62f0f1
commit 0c0d857f2d
8 changed files with 19 additions and 11 deletions

View File

@ -69,12 +69,12 @@ void DormantNodeListItem::DrawItem(
r.right = r.left + B_MINI_ICON - 1.0;
r.bottom = r.top + B_MINI_ICON - 1.0;
if (IsSelected()) {
owner->SetHighColor(255.0, 255.0, 255.0, 255.0);
owner->SetHighColor(255, 255, 255, 255);
owner->FillRect(r);
owner->SetDrawingMode(B_OP_INVERT);
owner->DrawBitmap(m_icon, r.LeftTop());
owner->SetDrawingMode(B_OP_ALPHA);
owner->SetHighColor(0.0, 0.0, 0.0, 180.0);
owner->SetHighColor(0, 0, 0, 180);
owner->SetBlendingMode(B_CONSTANT_ALPHA, B_ALPHA_COMPOSITE);
owner->DrawBitmap(m_icon, r.LeftTop());
owner->SetDrawingMode(B_OP_OVER);
@ -93,7 +93,7 @@ void DormantNodeListItem::DrawItem(
r.bottom = r.top + m_fontHeight.ascent + m_fontHeight.descent;
if (IsSelected() || drawEverything) {
if (IsSelected()) {
owner->SetHighColor(16.0, 64.0, 96.0, 255.0);
owner->SetHighColor(16, 64, 96, 255);
}
else {
owner->SetHighColor(owner->ViewColor());
@ -101,10 +101,10 @@ void DormantNodeListItem::DrawItem(
owner->FillRect(r);
}
if (IsSelected()) {
owner->SetHighColor(255.0, 255.0, 255.0, 255.0);
owner->SetHighColor(255, 255, 255, 255);
}
else {
owner->SetHighColor(0.0, 0.0, 0.0, 0.0);
owner->SetHighColor(0, 0, 0, 0);
}
BPoint labelOffset(r.left + 1.0, r.bottom - m_fontHeight.descent);
owner->DrawString(m_info.name, labelOffset);
@ -199,10 +199,10 @@ BBitmap *DormantNodeListItem::getDragBitmap() {
BView *dragView = new BView(dragBitmap->Bounds(), "", B_FOLLOW_NONE, 0);
dragBitmap->AddChild(dragView);
dragView->SetOrigin(0.0, 0.0);
dragView->SetHighColor(0.0, 0.0, 0.0, 0.0);
dragView->SetHighColor(0, 0, 0, 0);
dragView->FillRect(dragView->Bounds());
dragView->SetDrawingMode(B_OP_ALPHA);
dragView->SetHighColor(0.0, 0.0, 0.0, 128.0);
dragView->SetHighColor(0, 0, 0, 128);
dragView->SetBlendingMode(B_CONSTANT_ALPHA, B_ALPHA_COMPOSITE);
// Drawing code back again
if (m_icon) {

View File

@ -288,7 +288,7 @@ StatusView::drawInto(BView *v, BRect updateRect)
r.InsetBy(2.0, 0.0);
v->SetDrawingMode(B_OP_ALPHA);
v->SetHighColor(0, 0, 0, 255 * m_opacity);
v->SetHighColor(0, 0, 0, uchar(255 * m_opacity));
// draw icon
if (m_icon) {

View File

@ -316,7 +316,7 @@ void ValControlDigitSegment::MessageReceived(BMessage* pMsg) {
case ValControl::M_SET_VALUE:
err = pMsg->FindDouble("value", &fVal);
ASSERT(err == B_OK);
setValue(fVal, fVal < 0);
setValue((int64)fVal, fVal < 0);
break;
case ValControl::M_GET_VALUE: {

View File

@ -32,6 +32,9 @@ __BEGIN_CORTEX_NAMESPACE
// the locking interface
class ILockable {
public:
ILockable() { }
virtual ~ILockable() { }
public: // constants
enum lock_t {
WRITE,

View File

@ -14,6 +14,9 @@ __BEGIN_CORTEX_NAMESPACE
class IObservable {
public:
IObservable() { }
virtual ~IObservable() { }
public: // *** deletion
// clients must call release() rather than deleting,
// to ensure that all observers are notified of the

View File

@ -25,6 +25,8 @@ class MouseTrackingSourceView;
// interface for a mouse-tracking destination
class IMouseTrackingDestination {
public: // operations
IMouseTrackingDestination() { }
virtual ~IMouseTrackingDestination() { }
// a MouseTrackingSourceView has started tracking the mouse
// (point is in pSource view coordinates)
virtual void mouseTrackingBegin(