aboutsummaryrefslogtreecommitdiff
path: root/nxcomp/PolyText8.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-08-10 12:19:17 -0700
committerUlrich Sibiller <uli42@gmx.de>2016-10-19 21:40:28 +0200
commitbe32fbb31b1cf65986b46ed8e837d556546c5e45 (patch)
tree9ba91af29005b0fb4e0b52adb3b0ec0f23a87515 /nxcomp/PolyText8.h
parentad51fbdb41f8f6bb898ca60b5e547a24aa4ef700 (diff)
downloadnx-libs-be32fbb31b1cf65986b46ed8e837d556546c5e45.tar.gz
nx-libs-be32fbb31b1cf65986b46ed8e837d556546c5e45.tar.bz2
nx-libs-be32fbb31b1cf65986b46ed8e837d556546c5e45.zip
miRegionOp(): ensure region size is not updated if realloc fails
This function performs operations on a region, and when finished, checks to see if it should compact the rectangle list. If the number of rectangles for which memory is allocated in the list is more than twice the number used, it tries to shrink. realloc() should not fail in this case, but if it does, might as well keep the correct value for the number of allocated rectangles, so we don't try to grow it unnecessarily later if adding to the region. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nxcomp/PolyText8.h')
0 files changed, 0 insertions, 0 deletions