Tracker: fix build with DEBUG=1

Change-Id: Ieaaf23b0780f50837153634ad3e82eda6e5978f8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5700
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
Oscar Lesta 2022-09-27 05:37:59 -03:00 committed by waddlesplash
parent 2b9426c90a
commit c907db6c62
2 changed files with 2 additions and 2 deletions

View File

@ -228,7 +228,7 @@ bool
IconCacheEntry::IconHitTest(BPoint where, IconDrawMode mode,
BSize size) const
{
ASSERT(where.x < size && where.y < size);
ASSERT(where.x < size.width && where.y < size.height);
BBitmap* bitmap = IconForMode(mode, size);
if (bitmap == NULL)
return false;

View File

@ -208,7 +208,7 @@ IconSpewer::DrawSomeNew()
IconCache::sIconCache->Draw(&model, view,
BPoint(column * (kIconSize + 2), row * (kIconSize + 2)),
kNormalIcon, kIconSize, true);
kNormalIcon, BSize(kIconSize - 1, kIconSize - 1), true);
target->Unlock();
numDrawn++;
}