mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-28 05:54:19 -04:00
CMakeLists.txt: check against c not c++ (CheckCXX -> CheckC etc)
BMP/EMF/PCX/TIF: use more portable packed attribute instead of pragma if not MSVC CHANNEL: pass ptr not struct to `channel_copy_precalc()`
This commit is contained in:
parent
3960dfdbfc
commit
0a00d04ccc
8 changed files with 94 additions and 71 deletions
|
@ -397,9 +397,9 @@ INTERNAL int gif_pixel_plot(struct zint_symbol *symbol, unsigned char *pixelbuf)
|
|||
*/
|
||||
if (transparent_index != -1) {
|
||||
/* Extension Introducer = '!' */
|
||||
outbuf[0] = '\x21';
|
||||
outbuf[0] = '!';
|
||||
/* Graphic Control Label */
|
||||
outbuf[1] = '\xf9';
|
||||
outbuf[1] = 0xf9;
|
||||
/* Block Size */
|
||||
outbuf[2] = 4;
|
||||
/* Packet fields:
|
||||
|
@ -452,7 +452,7 @@ INTERNAL int gif_pixel_plot(struct zint_symbol *symbol, unsigned char *pixelbuf)
|
|||
free(State.pOut);
|
||||
|
||||
/* GIF terminator */
|
||||
fm_putc('\x3b', State.fmp);
|
||||
fm_putc(';', State.fmp);
|
||||
|
||||
if (fm_error(State.fmp)) {
|
||||
sprintf(symbol->errtxt, "615: Incomplete write to output (%d: %.30s)", State.fmp->err,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue