[haiku-commits] haiku: hrev47239 - src/servers/app/drawing/Painter

  • From: superstippi@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 21 May 2014 21:27:19 +0200 (CEST)

hrev47239 adds 1 changeset to branch 'master'
old head: b944cf31b111bb7440753a7c066ed7e764fb92b1
new head: 82d885a82bcf0610b8e68837e504446bdd4214d3
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=82d885a+%5Eb944cf3

----------------------------------------------------------------------------

82d885a: 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.

                                      [ Stephan Aßmus <superstippi@xxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev47239
Commit:      82d885a82bcf0610b8e68837e504446bdd4214d3
URL:         http://cgit.haiku-os.org/haiku/commit/?id=82d885a
Author:      Stephan Aßmus <superstippi@xxxxxx>
Date:        Wed May 21 19:26:38 2014 UTC

----------------------------------------------------------------------------

1 file changed, 2 insertions(+), 1 deletion(-)
src/servers/app/drawing/Painter/Painter.cpp | 3 ++-

----------------------------------------------------------------------------

diff --git a/src/servers/app/drawing/Painter/Painter.cpp 
b/src/servers/app/drawing/Painter/Painter.cpp
index f1d1cd2..ecc60b5 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++;


Other related posts:

  • » [haiku-commits] haiku: hrev47239 - src/servers/app/drawing/Painter - superstippi