* on R5, invalid BRects cannot be used with FillRect(), Haiku is
compatible now. This fixes the last remaining drawing bug in SoundRecorder. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18838 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2676,6 +2676,11 @@ BView::FillRect(BRect rect, ::pattern pattern)
|
|||||||
if (fOwner == NULL)
|
if (fOwner == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// NOTE: ensuring compatibility with R5,
|
||||||
|
// invalid rects are not filled, they are stroked though!
|
||||||
|
if (!rect.IsValid())
|
||||||
|
return;
|
||||||
|
|
||||||
check_lock();
|
check_lock();
|
||||||
_UpdatePattern(pattern);
|
_UpdatePattern(pattern);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user