Clean up DrawText() and DrawRotatedText() (wxPostScriptDC)

Move shared code to the separate method DrawAnyText() instead of duplicating it.
This commit is contained in:
Artur Wieczorek
2017-01-27 22:44:16 +01:00
parent ba5d07f4b4
commit cd676d1663
2 changed files with 40 additions and 109 deletions

View File

@@ -137,6 +137,9 @@ protected:
void DoGetSize(int* width, int* height) const wxOVERRIDE;
void DoGetSizeMM(int *width, int *height) const wxOVERRIDE;
// Common part of DoDrawText() and DoDrawRotatedText()
void DrawAnyText(const wxWX2MBbuf& textbuf, wxCoord testDescent);
FILE* m_pstream; // PostScript output stream
unsigned char m_currentRed;
unsigned char m_currentGreen;