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.
This commit is contained in:
Stephan Aßmus 2014-05-21 21:26:38 +02:00
parent b944cf31b1
commit 82d885a82b
1 changed files with 2 additions and 1 deletions

View File

@ -2635,7 +2635,8 @@ Painter::_DrawBitmapGeneric32(agg::rendering_buffer& srcBuffer,
source_type source(pixf_img); source_type source(pixf_img);
// clip to the current clipping region's frame // 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) // convert to pixel coords (versus pixel indices)
viewRect.right++; viewRect.right++;
viewRect.bottom++; viewRect.bottom++;