Skip to content

Commit

Permalink
Remove blur limit
Browse files Browse the repository at this point in the history
  • Loading branch information
yshui committed May 17, 2018
1 parent bf29b2d commit af8a08e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/compton.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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));
Expand Down

0 comments on commit af8a08e

Please sign in to comment.