From ce2c561521b6fd085e7c517ac3d59ccfbba2e1e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 1 Feb 2014 22:33:50 +0100 Subject: [PATCH] ServerPicture: Set correct pen location after DrawString() --- src/servers/app/ServerPicture.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/servers/app/ServerPicture.cpp b/src/servers/app/ServerPicture.cpp index 898f27cc92..d02e5060c3 100644 --- a/src/servers/app/ServerPicture.cpp +++ b/src/servers/app/ServerPicture.cpp @@ -478,10 +478,10 @@ draw_string(DrawingContext* context, const char* string, float deltaSpace, // use PenLocation() BPoint location = context->CurrentState()->PenLocation(); - escapement_delta delta = {deltaSpace, deltaNonSpace }; + escapement_delta delta = { deltaSpace, deltaNonSpace }; context->ConvertToScreenForDrawing(&location); - context->GetDrawingEngine()->DrawString(string, strlen(string), location, - &delta); + location = context->GetDrawingEngine()->DrawString(string, strlen(string), + location, &delta); context->ConvertFromScreenForDrawing(&location); context->CurrentState()->SetPenLocation(location);