Changeset 13470
- Timestamp:
- May 22, 2007, 9:46:46 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/types/psPixels.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/types/psPixels.c
r13449 r13470 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.3 5$ $Name: not supported by cvs2svn $10 * @date $Date: 2007-05-22 00:14:25$9 * @version $Revision: 1.36 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2007-05-22 19:46:46 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 135 135 float y) 136 136 { 137 PS_ASSERT_PIXELS_NON_NULL(pixels, NULL);138 139 137 if (growth <= 0) { 140 138 growth = PIXELS_DEFAULT_ADD; 141 139 } 142 140 143 if (pixels->n >= pixels->nalloc) { 141 if (!pixels) { 142 pixels = psPixelsAllocEmpty(growth); 143 } else if (pixels->n >= pixels->nalloc) { 144 144 pixels = psPixelsRealloc(pixels, pixels->nalloc + growth); 145 145 }
Note:
See TracChangeset
for help on using the changeset viewer.
