* For DrawBitmap(), the bitmap rect needs to be aligned onto pixels

just like the view rect. This fixes bug 721.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18872 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2006-09-17 11:55:23 +00:00
parent 6636d6b74f
commit fd49bce12e

View File

@ -1354,8 +1354,10 @@ Painter::_DrawBitmap(agg::rendering_buffer& srcBuffer, color_space format,
return;
}
if (!fSubpixelPrecise)
if (!fSubpixelPrecise) {
align_rect_to_pixels(&viewRect);
align_rect_to_pixels(&bitmapRect);
}
double xScale = (viewRect.Width() + 1) / (bitmapRect.Width() + 1);
double yScale = (viewRect.Height() + 1) / (bitmapRect.Height() + 1);