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:
Kacper Kasper 2020-06-13 22:26:21 +02:00 committed by waddlesplash
parent ed78fbfc36
commit c63d300251
1 changed files with 2 additions and 1 deletions

View File

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