diff --git a/libguac/src/protocol.c b/libguac/src/protocol.c index 1e36e1cc..c0bac8da 100644 --- a/libguac/src/protocol.c +++ b/libguac/src/protocol.c @@ -330,11 +330,13 @@ int guac_send_png(GUACIO* io, int layer, int x, int y, png_byte** png_rows, int return -1; } +#ifdef GUAC_FAST_PNG /* Do not filter (speed) */ png_set_filter(png, PNG_FILTER_TYPE_BASE, PNG_FILTER_VALUE_NONE); /* Fast compression level */ png_set_compression_level(png, 1); +#endif /* Set error handler */ if (setjmp(png_jmpbuf(png))) {