From 10493d109c463c33c8b35c7bc785cd65124ce640 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sun, 19 Feb 2006 19:13:27 +0000 Subject: [PATCH] small fixes git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16471 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/soundrecorder/DrawingTidbits.cpp | 2 +- src/apps/soundrecorder/RecorderWindow.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);