Mercurial > hg > dmlib
changeset 1920:be7492a121f0
Define variable at start of block.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 27 Jun 2018 19:13:24 +0300 |
parents | f0225a52afce |
children | ee9bbf891352 |
files | tools/libgfx.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/libgfx.c Wed Jun 27 19:09:25 2018 +0300 +++ b/tools/libgfx.c Wed Jun 27 19:13:24 2018 +0300 @@ -2014,6 +2014,7 @@ { Uint8 data = buf[offs]; int next_mode; + BOOL flush; if (data == prev) { @@ -2025,7 +2026,7 @@ next_mode = DMODE_LIT; } - BOOL flush = offs - l_offs >= 126 || r_count >= 126; + flush = offs - l_offs >= 126 || r_count >= 126; if ((next_mode != mode || flush) && !dmIFFEncodeByteRun1Flush(fp, mode, flush, &l_offs, offs, buf, prev, &r_count)) return FALSE;