Mercurial > hg > dmlib
view src/dmtool.h @ 1785:86d10d5d4915
Fix case where DMGrowBuf is growing backwards and needs to be reallocated in
dmGrowBufRealloc() and the data is moved to the "end" of the newly grown
buffer. Previously we used clrsize as data size, but that is (in retrospect)
obviously incorrect. Use old buffer size instead.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 13 Jun 2018 01:39:06 +0300 |
parents | a9516570cc26 |
children | bcd33c77c605 |
line wrap: on
line source
/* * DMLib * Get rid of the SDL_main for some commandline tools * Programmed and designed by Matti 'ccr' Hamalainen * (C) Copyright 2012 Tecnic Software productions (TNSP) */ #ifndef DMTOOL_H #define DMTOOL_H 1 // Get rid of the SDL_main mess for some commandline tools #define _SDL_main_h #define SDL_main main #endif