- remove hardcoded color
- do not force bitmap size for ftp, in case the webcam doesn't give 320x240 it would mess up with memcpy. Maybe we'll want to give the option to either resize to QVGA or keep the native size someday. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25353 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a941060027
commit
3dd6b9cfa1
@ -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 */
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user