Permalink
Browse files

Keep the number of lines to flip as a negative num

Keep track of the number of lines to flip on the reverse page using a negative
number.  This uses the ill-advised principle of overloading the meaning of a
variable.  Still, it kind of makes sense because these lines are upside down,
so the number should be "upside down" too.  Besides, leaving it as a positive
number trips up the code which does page padding, which would require even
more special case code.
  • Loading branch information...
1 parent 0245820 commit 557d60f15623b447c1ec8fc46f99719777a16b51 @barnacle-carnival barnacle-carnival committed Mar 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 backend/avision.c
View
@@ -7486,7 +7486,7 @@ reader_process (void *data)
}
/* we can set anything here without fear because the process will terminate soon and take our changes with it */
s->page += 1;
- s->params.lines = line;
+ s->params.lines = -line;
exit_status = reader_process (s);
}
/* TODO:

0 comments on commit 557d60f

Please sign in to comment.