Remove blur limit

Thanks chjj/compton#414
This commit is contained in:
Yuxuan Shui 2018-05-17 12:37:13 +01:00
parent bf29b2dd37
commit af8a08e655
1 changed files with 4 additions and 5 deletions

View File

@ -5064,7 +5064,7 @@ parse_matrix(session_t *ps, const char *src, const char **endptr) {
int wid = 0, hei = 0; int wid = 0, hei = 0;
const char *pc = NULL; const char *pc = NULL;
XFixed *matrix = NULL; XFixed *matrix = NULL;
// Get matrix width and height // Get matrix width and height
{ {
double val = 0.0; 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."); printf_errf("(): Width/height not odd.");
goto parse_matrix_err; goto parse_matrix_err;
} }
if (wid > 16 || hei > 16) { if (wid > 16 || hei > 16)
printf_errf("(): Matrix width/height too large."); printf_errf("(): Matrix width/height too large, may slow down"
goto parse_matrix_err; "rendering, and/or consume lots of memory");
}
// Allocate memory // Allocate memory
matrix = calloc(wid * hei + 2, sizeof(XFixed)); matrix = calloc(wid * hei + 2, sizeof(XFixed));