~ubuntu-branches/ubuntu/intrepid/plplot/intrepid

« back to all changes in this revision

Viewing changes to bindings/tk/plr.c

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2006-11-04 10:19:34 UTC
  • mfrom: (2.1.8 edgy)
  • Revision ID: james.westby@ubuntu.com-20061104101934-mlirvdg4gpwi6i5q
Tags: 5.6.1-10
* Orphaning the package
* debian/control: Changed the maintainer to the Debian QA Group

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: plr.c,v 1.26 2002/12/03 08:39:22 airwin Exp $
 
1
/* $Id: plr.c,v 1.28 2005/03/23 09:54:05 mlebrun Exp $
2
2
 
3
3
    Copyright 1993, 1994, 1995
4
4
    Maurice LeBrun
388
388
    }
389
389
 
390
390
    case PLSTATE_COLOR0:{
391
 
        U_CHAR icol0, r, g, b;
 
391
        short icol0;
392
392
 
393
 
        plr_rd( pdf_rd_1byte(plr->pdfs, &icol0) );
 
393
        plr_rd( pdf_rd_2bytes(plr->pdfs, &icol0) );
394
394
 
395
395
        if (icol0 == PL_RGB_COLOR) {
 
396
            U_CHAR r, g, b;
396
397
            plr_rd( pdf_rd_1byte(plr->pdfs, &r) );
397
398
            plr_rd( pdf_rd_1byte(plr->pdfs, &g) );
398
399
            plr_rd( pdf_rd_1byte(plr->pdfs, &b) );
423
424
    }
424
425
 
425
426
    case PLSTATE_CMAP0:{
426
 
        U_CHAR ncol0;
 
427
        U_SHORT ncol0;
427
428
 
428
 
        plr_rd( pdf_rd_1byte(plr->pdfs, &ncol0) );
 
429
        plr_rd( pdf_rd_2bytes(plr->pdfs, &ncol0) );
429
430
        plscmap0n((PLINT) ncol0);
430
431
        for (i = 0; i < plsc->ncol0; i++) {
431
432
            plr_rd( pdf_rd_1byte(plr->pdfs, &plsc->cmap0[i].r) );