Changeset 4214 for trunk/psLib/src/collections/psPixels.c
- Timestamp:
- Jun 10, 2005, 4:19:05 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psPixels.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psPixels.c
r4212 r4214 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06-1 0 21:46:46$9 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-11 02:19:05 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 89 89 pixels->n = pixels->nalloc; 90 90 } 91 92 return pixels; 93 } 94 95 psPixels* p_psPixelsAppend(psPixels* pixels, int growth, psS32 x, psS32 y) 96 { 97 if (growth < 1) { 98 growth = 10; 99 } 100 101 if ( (pixels == NULL) || (pixels->n >= pixels->nalloc) ) { 102 pixels=psPixelsRealloc(pixels, pixels->nalloc+growth); 103 } 104 105 int n = pixels->n; 106 107 pixels->data[n].x = x; 108 pixels->data[n].y = y; 109 110 pixels->n++; 91 111 92 112 return pixels;
Note:
See TracChangeset
for help on using the changeset viewer.
