Skip to content

Commit

Permalink
Simpler PostScript output of Fl_Bitmap objects
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7696 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Sep 4, 2010
1 parent 0dc7b5e commit 3b3197a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Fl_PostScript.cxx
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/ps_image.cxx
Expand Up @@ -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");
Expand Down

0 comments on commit 3b3197a

Please sign in to comment.