B_COLOR_8_BIT is deprecated
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17180 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1641,11 +1641,11 @@ TitleView::TitleView(BRect rect, OutlineView *horizontalSlave, BList *visibleCol
|
|||||||
fDrawBuffer->Unlock();
|
fDrawBuffer->Unlock();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
fUpSortArrow = new BBitmap(BRect(0, 0, 7, 7), B_COLOR_8_BIT);
|
fUpSortArrow = new BBitmap(BRect(0, 0, 7, 7), B_CMAP8);
|
||||||
fDownSortArrow = new BBitmap(BRect(0, 0, 7, 7), B_COLOR_8_BIT);
|
fDownSortArrow = new BBitmap(BRect(0, 0, 7, 7), B_CMAP8);
|
||||||
|
|
||||||
fUpSortArrow->SetBits((const void*) kUpSortArrow8x8, 64, 0, B_COLOR_8_BIT);
|
fUpSortArrow->SetBits((const void*) kUpSortArrow8x8, 64, 0, B_CMAP8);
|
||||||
fDownSortArrow->SetBits((const void*) kDownSortArrow8x8, 64, 0, B_COLOR_8_BIT);
|
fDownSortArrow->SetBits((const void*) kDownSortArrow8x8, 64, 0, B_CMAP8);
|
||||||
|
|
||||||
#if _INCLUDES_CLASS_CURSOR
|
#if _INCLUDES_CLASS_CURSOR
|
||||||
fResizeCursor = new BCursor(kResizeCursorData);
|
fResizeCursor = new BCursor(kResizeCursorData);
|
||||||
|
|||||||
@@ -730,12 +730,12 @@ BMenuItem::_DrawShortcutSymbol()
|
|||||||
|
|
||||||
if (fModifiers & B_COMMAND_KEY) {
|
if (fModifiers & B_COMMAND_KEY) {
|
||||||
BRect rect(0,0,16,10);
|
BRect rect(0,0,16,10);
|
||||||
BBitmap control(rect, B_COLOR_8_BIT);
|
BBitmap control(rect, B_CMAP8);
|
||||||
|
|
||||||
if (BMenu::sAltAsCommandKey)
|
if (BMenu::sAltAsCommandKey)
|
||||||
control.SetBits(kAltBits, kAltLength, 0, B_COLOR_8_BIT);
|
control.SetBits(kAltBits, kAltLength, 0, B_CMAP8);
|
||||||
else
|
else
|
||||||
control.SetBits(kCtrlBits, kCtrlLength, 0, B_COLOR_8_BIT);
|
control.SetBits(kCtrlBits, kCtrlLength, 0, B_CMAP8);
|
||||||
fSuper->DrawBitmap(&control, where);
|
fSuper->DrawBitmap(&control, where);
|
||||||
|
|
||||||
where.x -= rect.Width() + 1;
|
where.x -= rect.Width() + 1;
|
||||||
@@ -743,12 +743,12 @@ BMenuItem::_DrawShortcutSymbol()
|
|||||||
|
|
||||||
if (fModifiers & B_CONTROL_KEY) {
|
if (fModifiers & B_CONTROL_KEY) {
|
||||||
BRect rect(0,0,16,10);
|
BRect rect(0,0,16,10);
|
||||||
BBitmap control(rect, B_COLOR_8_BIT);
|
BBitmap control(rect, B_CMAP8);
|
||||||
|
|
||||||
if (BMenu::sAltAsCommandKey)
|
if (BMenu::sAltAsCommandKey)
|
||||||
control.SetBits(kCtrlBits, kCtrlLength, 0, B_COLOR_8_BIT);
|
control.SetBits(kCtrlBits, kCtrlLength, 0, B_CMAP8);
|
||||||
else
|
else
|
||||||
control.SetBits(kAltBits, kAltLength, 0, B_COLOR_8_BIT);
|
control.SetBits(kAltBits, kAltLength, 0, B_CMAP8);
|
||||||
fSuper->DrawBitmap(&control, where);
|
fSuper->DrawBitmap(&control, where);
|
||||||
|
|
||||||
where.x -= rect.Width() + 1;
|
where.x -= rect.Width() + 1;
|
||||||
@@ -756,8 +756,8 @@ BMenuItem::_DrawShortcutSymbol()
|
|||||||
|
|
||||||
if (fModifiers & B_SHIFT_KEY) {
|
if (fModifiers & B_SHIFT_KEY) {
|
||||||
BRect rect(0,0,21,10);
|
BRect rect(0,0,21,10);
|
||||||
BBitmap shift(rect, B_COLOR_8_BIT);
|
BBitmap shift(rect, B_CMAP8);
|
||||||
shift.SetBits(kShiftBits, kShiftLength, 0, B_COLOR_8_BIT);
|
shift.SetBits(kShiftBits, kShiftLength, 0, B_CMAP8);
|
||||||
fSuper->DrawBitmap(&shift, where - BPoint(6, 0));
|
fSuper->DrawBitmap(&shift, where - BPoint(6, 0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user