Some question about function StartPage() in Rastertohp.c

Michael Sweet mike at easysw.com
Wed Nov 9 18:56:31 PST 2005


Zhang xin wrote:
> ...
> if ((!Duplex || (Page & 1)) && header->MediaPosition)

"!Duplex || (Page & 1)" means "not double-sided or on an odd-numbered
page".  "Page & 1" is the same as "Page % 2" but is faster.

In this case, the HP driver needs to send certain commands for the
front side of pages - when printing the back side, different commands
need to be sent.

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Publishing Software        http://www.easysw.com




More information about the cups-devel mailing list