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.
This commit is contained in:
Stephan Aßmus
2014-05-23 20:52:14 +02:00
parent ae4fa7ce39
commit 81507fa496
+2 -2
View File
@@ -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);