diff options
| author | Manolo Gouy <Manolo> | 2010-09-04 12:49:35 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-09-04 12:49:35 +0000 |
| commit | 3b3197a86ad6f0b7de7f8fd047b847a0e5641815 (patch) | |
| tree | 0cb9bc176e5e757e48d5511ab16b63c7eff57259 /src | |
| parent | 0dc7b5edc58def3839f05e8692f060aa47b18e2c (diff) | |
Simpler PostScript output of Fl_Bitmap objects
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7696 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_PostScript.cxx | 2 | ||||
| -rw-r--r-- | src/ps_image.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_PostScript.cxx b/src/Fl_PostScript.cxx index 7653f8504..cc088555d 100644 --- a/src/Fl_PostScript.cxx +++ b/src/Fl_PostScript.cxx @@ -270,7 +270,7 @@ static const char * prolog = "/MI { GS /py exch def /px exch def /sy exch def /sx exch def \n" "translate \n" -"sx sy scale px py false \n" +"sx sy scale px py true \n" "[ px 0 0 py neg 0 py ]\n" "currentfile /ASCIIHexDecode filter\n" "imagemask GR\n" diff --git a/src/ps_image.cxx b/src/ps_image.cxx index e60797764..1bad4375b 100644 --- a/src/ps_image.cxx +++ b/src/ps_image.cxx @@ -517,7 +517,7 @@ void Fl_PostScript_Graphics_Driver::draw(Fl_Bitmap * bitmap,int XP, int YP, int for (j=0; j<HP; j++){ for (i=0; i<xx; i++){ if (!(i%80)) fprintf(output, "\n"); // not have lines longer than 255 chars - fprintf(output, "%.2x",swap_byte(~(*di))); + fprintf(output, "%.2x", swap_byte(*di) ); di++; } fprintf(output,"\n"); |
