diff options
| author | Matthias Melcher <git@matthiasm.com> | 2019-02-02 17:47:55 +0100 |
|---|---|---|
| committer | Matthias Melcher <git@matthiasm.com> | 2019-02-02 17:47:55 +0100 |
| commit | 452a410a3ea02f58930c4b3cc5a04bbb6b3e7070 (patch) | |
| tree | d243cf51c8b20541b46ba051d646c91b5aad1825 /src/drivers/PostScript/Fl_PostScript.cxx | |
| parent | 76668c7cc11c80f337bd7d04d6adead49c8a636f (diff) | |
STR #2714: remove new shadow lint for MacOS
Diffstat (limited to 'src/drivers/PostScript/Fl_PostScript.cxx')
| -rw-r--r-- | src/drivers/PostScript/Fl_PostScript.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/drivers/PostScript/Fl_PostScript.cxx b/src/drivers/PostScript/Fl_PostScript.cxx index e62946392..4d74f0840 100644 --- a/src/drivers/PostScript/Fl_PostScript.cxx +++ b/src/drivers/PostScript/Fl_PostScript.cxx @@ -974,9 +974,9 @@ void Fl_PostScript_Graphics_Driver::color(unsigned char r, unsigned char g, unsi } } -void Fl_PostScript_Graphics_Driver::draw(int angle, const char *str, int n, int x, int y) +void Fl_PostScript_Graphics_Driver::draw(int rotation, const char *str, int n, int x, int y) { - fprintf(output, "GS %d %d translate %d rotate\n", x, y, - angle); + fprintf(output, "GS %d %d translate %d rotate\n", x, y, -rotation); this->transformed_draw(str, n, 0, 0); fprintf(output, "GR\n"); } @@ -1046,7 +1046,7 @@ void Fl_PostScript_Graphics_Driver::transformed_draw_extra(const char* str, int font(fontnum, old_size); fl_delete_offscreen(off); // compute the mask of what is not the background - uchar *mask = calc_mask(img, w2, h, bg_color); + uchar *img_mask = calc_mask(img, w2, h, bg_color); delete[] img; // write the string image to PostScript as a scaled bitmask scale = w2 / float(w); @@ -1055,14 +1055,14 @@ void Fl_PostScript_Graphics_Driver::transformed_draw_extra(const char* str, int int wmask = (w2+7)/8; void *rle85 = prepare_rle85(); for (int j = h - 1; j >= 0; j--){ - di = mask + j * wmask; + di = img_mask + j * wmask; for (int i = 0; i < wmask; i++){ write_rle85(*di, rle85); di++; } } close_rle85(rle85); fputc('\n', output); - delete[] mask; + delete[] img_mask; } static int is_in_table(unsigned utf) { |
