home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / NETWORK / netpbm_src.lzh / NETPBM / AMIGA / DICE.PATCH < prev    next >
Text File  |  1996-11-18  |  1KB  |  43 lines

  1. *** ppm/ppmforge.c.old    Mon Oct 04 10:12:28 1993
  2. --- ppm/ppmforge.c    Thu Feb 10 01:06:08 1994
  3. ***************
  4. *** 662,670 ****
  5. --- 662,676 ----
  6.                       AtSat(ib, 255);
  7.   
  8.                       inx = PlanetAmbient + (1.0 - PlanetAmbient) * di;
  9. + #ifndef _DCC
  10.                       ir *= inx;
  11.                       ig *= inx;
  12.                       ib *= inx;
  13. + #else
  14. +                     ir = ir * inx;
  15. +                     ig = ig * inx;
  16. +                     ib = ib * inx;
  17. + #endif /* _DCC */
  18.                   }
  19.   
  20.                   PPM_ASSIGN(*rpix, ir, ig, ib);
  21. *** ppm/picttoppm.c.old    Fri Jan 28 10:19:18 1994
  22. --- ppm/picttoppm.c    Thu Feb 10 00:59:44 1994
  23. ***************
  24. *** 3008,3017 ****
  25. --- 3008,3024 ----
  26.   double       xscale;
  27.   double       yscale;
  28.   {
  29. + #ifndef _DCC
  30.           r->left *= xscale;
  31.           r->right *= xscale;
  32.           r->top *= yscale;
  33.           r->bottom *= yscale;
  34. + #else
  35. +         r->left     = r->left * xscale;
  36. +         r->right    = r->right * xscale;
  37. +         r->top      = r->top * yscale;
  38. +         r->bottom   = r->bottom * yscale;
  39. + #endif  /* _DCC */
  40.   }
  41.   
  42.   static void
  43.