From 82d885a82bcf0610b8e68837e504446bdd4214d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Wed, 21 May 2014 21:26:38 +0200 Subject: [PATCH] app_server: Fix another problem with transformed bitmaps... ... the view rect was clipped to the view bounds in _DrawBitmapGeneric32(), which is incorrect when affine transformations are used. --- src/servers/app/drawing/Painter/Painter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/servers/app/drawing/Painter/Painter.cpp b/src/servers/app/drawing/Painter/Painter.cpp index f1d1cd20c2..ecc60b52df 100644 --- a/src/servers/app/drawing/Painter/Painter.cpp +++ b/src/servers/app/drawing/Painter/Painter.cpp @@ -2635,7 +2635,8 @@ Painter::_DrawBitmapGeneric32(agg::rendering_buffer& srcBuffer, source_type source(pixf_img); // clip to the current clipping region's frame - viewRect = viewRect & fClippingRegion->Frame(); + if (fIdentityTransform) + viewRect = viewRect & fClippingRegion->Frame(); // convert to pixel coords (versus pixel indices) viewRect.right++; viewRect.bottom++;