~ubuntu-branches/ubuntu/raring/hplip/raring

« back to all changes in this revision

Viewing changes to prnt/hpijs/dj9xxvip.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2009-12-14 20:08:44 UTC
  • mfrom: (2.1.118 lucid)
  • Revision ID: james.westby@ubuntu.com-20091214200844-z8qhqwgppbu3t7ze
Tags: 3.9.10-4
KBSD patch from KiBi (Closes: #560796)

Show diffs side-by-side

added added

removed removed

Lines of Context:
500
500
    QUALITY_MODE    eQualityMode;
501
501
    BOOL            bDeviceText;
502
502
 
503
 
    thePrintContext->GetPrintModeSettings (eQualityMode, eMediaType, eColorMode, bDeviceText);
504
 
    if (eMediaType == MEDIA_CDDVD)
505
 
    {
506
 
        thePrintContext->SetMediaSource (sourceTrayCDDVD);
507
 
        SetMediaSource (sourceTrayCDDVD);
508
 
    }
509
 
 
510
 
#ifdef APDK_LINUX
 
503
    thePrintContext->GetPrintModeSettings (eQualityMode, eMediaType, eColorMode, bDeviceText);
 
504
 
 
505
#ifdef APDK_EXTENDED_MEDIASIZE
511
506
/*
512
507
 *  A different media type may have been set via ppd that is different than
513
508
 *  what is initialized in the PrintMode constructor, for example, eMediaType
518
513
 
519
514
    SetMediaType (MediaTypeToPcl (eMediaType));
520
515
#endif
521
 
 
 
516
 
 
517
    if (eMediaType == MEDIA_CDDVD)
 
518
    {
 
519
        thePrintContext->SetMediaSource (sourceTrayCDDVD);
 
520
        SetMediaSource (sourceTrayCDDVD);
 
521
    }
 
522
 
522
523
    StartSend();
523
524
 
524
525
#ifdef APDK_AUTODUPLEX
1058
1059
            return UNSUPPORTED_PEN;
1059
1060
        }
1060
1061
 
1061
 
        if ((penInfoBits[0] & 0x80) != 0x80)         // if Bit 31 is 0, this is not a pen
 
1062
        if ((penInfoBits[0] & 0x40) != 0x40)         // if Bit 31 is 1, this is not a pen
1062
1063
        {
1063
1064
            continue;
1064
1065
        }
2295
2296
    {
2296
2297
        AsciiHexToBinary (penInfoBits, pStr, 8);
2297
2298
 
2298
 
        if ((penInfoBits[0] & 0x80) != 0x80)        // if Bit 31 is 0, this is not a pen
 
2299
        if ((penInfoBits[0] & 0x40) != 0x40)        // if Bit 31 is 1, this is not a pen
2299
2300
        {
2300
2301
            continue;
2301
2302
        }