Skip to content
Snippets Groups Projects
Commit db6d5fec authored by Timur Pocheptsov's avatar Timur Pocheptsov
Browse files

Also reset text matrix in IOS::PadPainter (actually, since I'm...

Also reset text matrix in IOS::PadPainter (actually, since I'm saving/restoring context state before every operation, this is not required, but just to 
be sure).


git-svn-id: http://root.cern.ch/svn/root/trunk@43092 27541ba8-7e3a-0410-8455-c3a389f83636
parent 7ac00c71
Branches
Tags
No related merge requests found
...@@ -528,6 +528,8 @@ void Painter::DrawText(Double_t x, Double_t y, const CTLineGuard &ctLine) ...@@ -528,6 +528,8 @@ void Painter::DrawText(Double_t x, Double_t y, const CTLineGuard &ctLine)
CGContextSaveGState(fCtx); CGContextSaveGState(fCtx);
CGContextSetTextMatrix(fCtx, CGAffineTransformIdentity);
CGContextSetTextPosition(fCtx, 0.f, 0.f); CGContextSetTextPosition(fCtx, 0.f, 0.f);
CGContextTranslateCTM(fCtx, x, y); CGContextTranslateCTM(fCtx, x, y);
CGContextRotateCTM(fCtx, gVirtualX->GetTextAngle() * TMath::DegToRad()); CGContextRotateCTM(fCtx, gVirtualX->GetTextAngle() * TMath::DegToRad());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment