diff --git a/src/apps/codycam/CodyCam.cpp b/src/apps/codycam/CodyCam.cpp index 0524566c6e..36e2be6f4d 100644 --- a/src/apps/codycam/CodyCam.cpp +++ b/src/apps/codycam/CodyCam.cpp @@ -39,8 +39,6 @@ const int32 kMenuHeight = 15; const int32 kButtonHeight = 15; const int32 kSliderViewRectHeight = 40; -const rgb_color kViewGray = {216, 216, 216, 255}; - static void ErrorAlert(const char* message, status_t err); static status_t AddTranslationItems(BMenu* intoMenu, uint32 fromType); @@ -477,7 +475,7 @@ VideoWindow::VideoWindow (BRect frame, const char* title, window_type type, uint aRect.OffsetTo(B_ORIGIN); aRect.top += menuBar->Frame().Height() + 1; fView = new BView(aRect, "Background View", B_FOLLOW_ALL, B_WILL_DRAW); - fView->SetViewColor(kViewGray); + fView->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR)); AddChild(fView); /* add some controls */ diff --git a/src/apps/codycam/VideoConsumer.cpp b/src/apps/codycam/VideoConsumer.cpp index 65f43d38be..3bf240251b 100644 --- a/src/apps/codycam/VideoConsumer.cpp +++ b/src/apps/codycam/VideoConsumer.cpp @@ -322,6 +322,8 @@ VideoConsumer::CreateBuffers(const media_format& withFormat) else ERROR("VideoConsumer::CreateBuffers ERROR IN GET BUFFER LIST\n"); + fFtpBitmap = new BBitmap(BRect(0, 0, xSize - 1, ySize - 1), B_RGB32, false, false); + FUNCTION("VideoConsumer::CreateBuffers - EXIT\n"); return status; } @@ -368,7 +370,6 @@ VideoConsumer::Connected(const media_source& producer, const media_destination& return B_ERROR; } - fFtpBitmap = new BBitmap(BRect(0, 0, 320 - 1, 240 - 1), B_RGB32, false, false); fConnectionActive = true; FUNCTION("VideoConsumer::Connected - EXIT\n");