From af8a08e655cd32541bb5135e55b57f888bf9ff8e Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Thu, 17 May 2018 12:37:13 +0100 Subject: [PATCH] Remove blur limit Thanks chjj/compton#414 --- src/compton.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/compton.c b/src/compton.c index 8b4d7be..6af3403 100644 --- a/src/compton.c +++ b/src/compton.c @@ -5064,7 +5064,7 @@ parse_matrix(session_t *ps, const char *src, const char **endptr) { int wid = 0, hei = 0; const char *pc = NULL; XFixed *matrix = NULL; - + // Get matrix width and height { double val = 0.0; @@ -5087,10 +5087,9 @@ parse_matrix(session_t *ps, const char *src, const char **endptr) { printf_errf("(): Width/height not odd."); goto parse_matrix_err; } - if (wid > 16 || hei > 16) { - printf_errf("(): Matrix width/height too large."); - goto parse_matrix_err; - } + if (wid > 16 || hei > 16) + printf_errf("(): Matrix width/height too large, may slow down" + "rendering, and/or consume lots of memory"); // Allocate memory matrix = calloc(wid * hei + 2, sizeof(XFixed));