ServerPicture: Set correct pen location after DrawString()

This commit is contained in:
Stephan Aßmus 2014-02-01 22:33:50 +01:00
parent 7212dd427a
commit ce2c561521
1 changed files with 3 additions and 3 deletions

View File

@ -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);