BBitmap's constructor offsets the passed BRect to B_ORIGIN in case it isn't already. This fixes bug 301. Offset the rect in ChannelSlider too just in case.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16774 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -828,6 +828,8 @@ BBitmap::InitObject(BRect bounds, color_space colorSpace, uint32 flags,
|
||||
|
||||
CleanUp();
|
||||
|
||||
bounds.OffsetTo(B_ORIGIN);
|
||||
|
||||
// check params
|
||||
if (!bounds.IsValid() || !bitmaps_support_space(colorSpace, NULL)) {
|
||||
error = B_BAD_VALUE;
|
||||
|
||||
Reference in New Issue
Block a user