[haiku-commits] haiku: hrev47251 - src/servers/app/drawing

  • From: superstippi@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 23 May 2014 20:51:49 +0200 (CEST)

hrev47251 adds 1 changeset to branch 'master'
old head: ae4fa7ce3946df8efca99b7f51ed418bc955eaf8
new head: 81507fa4960e50d0f5cf76095c531bf06e61db4a
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=81507fa+%5Eae4fa7c

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

81507fa: app_server: Fix transformed DrawString()...
  
  ...when the transformation moves the text into the view bounds. The
  rect returned from Painter::BoundingBox() is already transformed, as
  should be expected.

                                      [ Stephan Aßmus <superstippi@xxxxxx> ]

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

Revision:    hrev47251
Commit:      81507fa4960e50d0f5cf76095c531bf06e61db4a
URL:         http://cgit.haiku-os.org/haiku/commit/?id=81507fa
Author:      Stephan Aßmus <superstippi@xxxxxx>
Date:        Fri May 23 18:52:14 2014 UTC

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

1 file changed, 2 insertions(+), 2 deletions(-)
src/servers/app/drawing/DrawingEngine.cpp | 4 ++--

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

diff --git a/src/servers/app/drawing/DrawingEngine.cpp 
b/src/servers/app/drawing/DrawingEngine.cpp
index 32e934c..edf2927 100644
--- a/src/servers/app/drawing/DrawingEngine.cpp
+++ b/src/servers/app/drawing/DrawingEngine.cpp
@@ -1374,7 +1374,7 @@ DrawingEngine::DrawString(const char* string, int32 
length,
        BRect b = fPainter->BoundingBox(string, length, pt, &penLocation, delta,
                &cacheReference);
        // stop here if we're supposed to render outside of the clipping
-       b = fPainter->TransformAndClipRect(b);
+       b = fPainter->ClipRect(b);
        if (b.IsValid()) {
 //printf("bounding box '%s': %lld µs\n", string, system_time() - now);
                AutoFloatingOverlaysHider _(fGraphicsCard, b);
@@ -1405,7 +1405,7 @@ DrawingEngine::DrawString(const char* string, int32 
length,
        BRect b = fPainter->BoundingBox(string, length, offsets, &penLocation,
                &cacheReference);
        // stop here if we're supposed to render outside of the clipping
-       b = fPainter->TransformAndClipRect(b);
+       b = fPainter->ClipRect(b);
        if (b.IsValid()) {
 //printf("bounding box '%s': %lld µs\n", string, system_time() - now);
                AutoFloatingOverlaysHider _(fGraphicsCard, b);


Other related posts:

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