B_COLOR_8_BIT is deprecated
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17167 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
const int32 kSmallIconWidth = 16;
|
const int32 kSmallIconWidth = 16;
|
||||||
const int32 kSmallIconHeight = 16;
|
const int32 kSmallIconHeight = 16;
|
||||||
const color_space kSmallIconColorSpace = B_COLOR_8_BIT;
|
const color_space kSmallIconColorSpace = B_CMAP8;
|
||||||
|
|
||||||
const unsigned char kCannaIcon [] = {
|
const unsigned char kCannaIcon [] = {
|
||||||
0xff,0xff,0xff,0xff,0x2b,0x2b,0x2b,0x2b,0x2b,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
0xff,0xff,0xff,0xff,0x2b,0x2b,0x2b,0x2b,0x2b,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||||
|
|||||||
@@ -106,8 +106,8 @@ MediaReplicant::MediaReplicant(BRect frame, const char *name,
|
|||||||
: BView(frame, name, resizeMask, flags)
|
: BView(frame, name, resizeMask, flags)
|
||||||
{
|
{
|
||||||
// Background Bitmap
|
// Background Bitmap
|
||||||
segments = new BBitmap(BRect(0, 0, kSpeakerWidth - 1, kSpeakerHeight - 1), B_COLOR_8_BIT);
|
segments = new BBitmap(BRect(0, 0, kSpeakerWidth - 1, kSpeakerHeight - 1), B_CMAP8);
|
||||||
segments->SetBits(kSpeakerBits, kSpeakerWidth*kSpeakerHeight, 0, B_COLOR_8_BIT);
|
segments->SetBits(kSpeakerBits, kSpeakerWidth*kSpeakerHeight, 0, B_CMAP8);
|
||||||
// Background Color
|
// Background Color
|
||||||
SetViewColor(184,184,184);
|
SetViewColor(184,184,184);
|
||||||
|
|
||||||
@@ -127,8 +127,8 @@ MediaReplicant::MediaReplicant(BMessage *message)
|
|||||||
volumeSlider(NULL)
|
volumeSlider(NULL)
|
||||||
{
|
{
|
||||||
// Background Bitmap
|
// Background Bitmap
|
||||||
segments = new BBitmap(BRect(0, 0, 16 - 1, 16 - 1), B_COLOR_8_BIT);
|
segments = new BBitmap(BRect(0, 0, 16 - 1, 16 - 1), B_CMAP8);
|
||||||
segments->SetBits(kSpeakerBits, 16*16, 0, B_COLOR_8_BIT);
|
segments->SetBits(kSpeakerBits, 16*16, 0, B_CMAP8);
|
||||||
LoadSettings();
|
LoadSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ void
|
|||||||
TAnalogClock::_InitView(BRect rect)
|
TAnalogClock::_InitView(BRect rect)
|
||||||
{
|
{
|
||||||
fClock = new OffscreenClock(kClockRect, "offscreen");
|
fClock = new OffscreenClock(kClockRect, "offscreen");
|
||||||
fBitmap = new BBitmap(kClockRect, B_COLOR_8_BIT, true);
|
fBitmap = new BBitmap(kClockRect, B_CMAP8, true);
|
||||||
fBitmap->Lock();
|
fBitmap->Lock();
|
||||||
fBitmap->AddChild(fClock);
|
fBitmap->AddChild(fClock);
|
||||||
fBitmap->Unlock();
|
fBitmap->Unlock();
|
||||||
|
|||||||
Reference in New Issue
Block a user