Move duplicated code to the shared function

Code to emit PostScript commands to set the current colour is duplicated in several places (in SetBrush, SetPen, DrawAnyText functions) and therefore should be moved to a dedicated function.
This commit is contained in:
Artur Wieczorek
2017-03-04 19:01:14 +01:00
parent feee67e6a1
commit 9c5d6e893f
2 changed files with 43 additions and 99 deletions

View File

@@ -141,6 +141,8 @@ protected:
void DrawAnyText(const wxWX2MBbuf& textbuf, wxCoord testDescent, double lineHeight);
// Actually set PostScript font
void SetPSFont();
// Set PostScript color
void SetPSColour(const wxColour& col);
FILE* m_pstream; // PostScript output stream
unsigned char m_currentRed;