diff --git a/src/apps/soundrecorder/DrawingTidbits.cpp b/src/apps/soundrecorder/DrawingTidbits.cpp index cccfdb5785..6351234cbf 100644 --- a/src/apps/soundrecorder/DrawingTidbits.cpp +++ b/src/apps/soundrecorder/DrawingTidbits.cpp @@ -67,7 +67,7 @@ ReplaceTransparentColor(BBitmap *bitmap, rgb_color with) ASSERT(bitmap->ColorSpace() == B_COLOR_8_BIT); // other color spaces not implemented yet BScreen screen(B_MAIN_SCREEN_ID); - uint32 withIndex = screen.IndexForColor(with); + uint8 withIndex = screen.IndexForColor(with); uchar *bits = (uchar *)bitmap->Bits(); int32 bitsLength = bitmap->BitsLength(); diff --git a/src/apps/soundrecorder/RecorderWindow.cpp b/src/apps/soundrecorder/RecorderWindow.cpp index 0aceadb093..d1746d8cc2 100644 --- a/src/apps/soundrecorder/RecorderWindow.cpp +++ b/src/apps/soundrecorder/RecorderWindow.cpp @@ -454,7 +454,7 @@ RecorderWindow::InitWindow() r.right -= 70; msg = new BMessage(LENGTH_CHANGED); fLengthControl = new BTextControl(r, "Length", "Length:", "8", msg); - fLengthControl->SetDivider(60); + fLengthControl->SetDivider(fLengthControl->StringWidth("Length:") + 4.0f); fLengthControl->SetAlignment(B_ALIGN_CENTER, B_ALIGN_RIGHT); fBottomBox->AddChild(fLengthControl);