small fixes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16471 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -67,7 +67,7 @@ ReplaceTransparentColor(BBitmap *bitmap, rgb_color with)
|
|||||||
ASSERT(bitmap->ColorSpace() == B_COLOR_8_BIT); // other color spaces not implemented yet
|
ASSERT(bitmap->ColorSpace() == B_COLOR_8_BIT); // other color spaces not implemented yet
|
||||||
|
|
||||||
BScreen screen(B_MAIN_SCREEN_ID);
|
BScreen screen(B_MAIN_SCREEN_ID);
|
||||||
uint32 withIndex = screen.IndexForColor(with);
|
uint8 withIndex = screen.IndexForColor(with);
|
||||||
|
|
||||||
uchar *bits = (uchar *)bitmap->Bits();
|
uchar *bits = (uchar *)bitmap->Bits();
|
||||||
int32 bitsLength = bitmap->BitsLength();
|
int32 bitsLength = bitmap->BitsLength();
|
||||||
|
|||||||
@@ -454,7 +454,7 @@ RecorderWindow::InitWindow()
|
|||||||
r.right -= 70;
|
r.right -= 70;
|
||||||
msg = new BMessage(LENGTH_CHANGED);
|
msg = new BMessage(LENGTH_CHANGED);
|
||||||
fLengthControl = new BTextControl(r, "Length", "Length:", "8", msg);
|
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);
|
fLengthControl->SetAlignment(B_ALIGN_CENTER, B_ALIGN_RIGHT);
|
||||||
fBottomBox->AddChild(fLengthControl);
|
fBottomBox->AddChild(fLengthControl);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user