From a4797804ba5d64a64a3f876ad54c85263464e41b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Tue, 27 Jan 2009 20:14:55 +0000 Subject: [PATCH] * removed the background border git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29063 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/soundrecorder/RecorderWindow.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/apps/soundrecorder/RecorderWindow.cpp b/src/apps/soundrecorder/RecorderWindow.cpp index fefd7b3be2..5074609c27 100644 --- a/src/apps/soundrecorder/RecorderWindow.cpp +++ b/src/apps/soundrecorder/RecorderWindow.cpp @@ -242,20 +242,20 @@ RecorderWindow::InitWindow() BRect r(Bounds()); r.bottom = r.top + 175; BBox *background = new BBox(r, "_background", B_FOLLOW_LEFT_RIGHT | B_FOLLOW_TOP, - B_WILL_DRAW|B_FRAME_EVENTS|B_NAVIGABLE_JUMP, B_PLAIN_BORDER); + B_WILL_DRAW|B_FRAME_EVENTS|B_NAVIGABLE_JUMP, B_NO_BORDER); AddChild(background); r = background->Bounds(); - r.left = 2; - r.right = r.left + 37; + r.left = 0; + r.right = r.left + 35; r.bottom = r.top + 104; fVUView = new VUView(r, B_FOLLOW_LEFT|B_FOLLOW_TOP); background->AddChild(fVUView); r = background->Bounds(); - r.left = r.left + 40; + r.left = r.left + 38; r.bottom = r.top + 104; fScopeView = new ScopeView(r, B_FOLLOW_LEFT_RIGHT|B_FOLLOW_TOP); background->AddChild(fScopeView); @@ -731,7 +731,8 @@ RecorderWindow::Save(BMessage * message) entry_ref ref; pItem->Entry().GetRef(&ref); - saveMsg.AddPointer("sound list item", pItem); + if (saveMsg.AddPointer("sound list item", pItem) != B_OK) + fprintf(stderr, "failed to add pItem\n"); fSavePanel->SetSaveText(filename); fSavePanel->SetMessage(&saveMsg); fSavePanel->Show(); @@ -930,7 +931,7 @@ RecorderWindow::StopRecording() wave_struct header; header.riff.riff_id = FOURCC('R','I','F','F'); - header.riff.len = fRecSize + 36; + header.riff.len = fRecSize + sizeof(header) - 8; header.riff.wave_id = FOURCC('W','A','V','E'); header.format_chunk.fourcc = FOURCC('f','m','t',' '); header.format_chunk.len = sizeof(header.format); @@ -1305,7 +1306,7 @@ RecorderWindow::CopyTarget(BMessage *msg) wave_struct header; header.riff.riff_id = FOURCC('R','I','F','F'); - header.riff.len = (frameSize * framesToWrite) + 36; + header.riff.len = (frameSize * framesToWrite) + sizeof(header) - 8; header.riff.wave_id = FOURCC('W','A','V','E'); header.format_chunk.fourcc = FOURCC('f','m','t',' '); header.format_chunk.len = sizeof(header.format);