app_server: fix tiled drawing when phase is outside bitmap bounds
sourceRect has phase baked in. If phasecomponents are larger than bitamp bounds sourceRect no longer intersects and nothing gets drawn. Change-Id: Ib3f676b8e78e2d941c89e699f9a0ab39cc93e173 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2916 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
ed78fbfc36
commit
c63d300251
@ -180,7 +180,8 @@ Painter::BitmapPainter::_DetermineTransform(BRect sourceRect,
|
||||
{
|
||||
if (!fPainter->fValidClipping
|
||||
|| !sourceRect.IsValid()
|
||||
|| !sourceRect.Intersects(fBitmapBounds)
|
||||
|| ((fOptions & B_TILE_BITMAP) == 0
|
||||
&& !sourceRect.Intersects(fBitmapBounds))
|
||||
|| !destinationRect.IsValid()) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user