ServerPicture: Set correct pen location after DrawString()
This commit is contained in:
parent
7212dd427a
commit
ce2c561521
@ -478,10 +478,10 @@ draw_string(DrawingContext* context, const char* string, float deltaSpace,
|
|||||||
// use PenLocation()
|
// use PenLocation()
|
||||||
BPoint location = context->CurrentState()->PenLocation();
|
BPoint location = context->CurrentState()->PenLocation();
|
||||||
|
|
||||||
escapement_delta delta = {deltaSpace, deltaNonSpace };
|
escapement_delta delta = { deltaSpace, deltaNonSpace };
|
||||||
context->ConvertToScreenForDrawing(&location);
|
context->ConvertToScreenForDrawing(&location);
|
||||||
context->GetDrawingEngine()->DrawString(string, strlen(string), location,
|
location = context->GetDrawingEngine()->DrawString(string, strlen(string),
|
||||||
&delta);
|
location, &delta);
|
||||||
|
|
||||||
context->ConvertFromScreenForDrawing(&location);
|
context->ConvertFromScreenForDrawing(&location);
|
||||||
context->CurrentState()->SetPenLocation(location);
|
context->CurrentState()->SetPenLocation(location);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user