diff --git a/src/servers/app/drawing/Painter/Painter.cpp b/src/servers/app/drawing/Painter/Painter.cpp index 5603653d80..e5b6a2818e 100644 --- a/src/servers/app/drawing/Painter/Painter.cpp +++ b/src/servers/app/drawing/Painter/Painter.cpp @@ -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);