small fixes

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16471 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2006-02-19 19:13:27 +00:00
parent 5f71cfd4bc
commit 10493d109c
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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);