diff options
author | Richard Grenville <[email protected]> | 2013-04-26 16:14:37 +0800 |
---|---|---|
committer | Richard Grenville <[email protected]> | 2013-04-26 16:14:37 +0800 |
commit | 74d91eb38534746efa0b21f2244ba6b41e5440ba (patch) | |
tree | 33d14122d8d3338c9a663a80cab3010b9c19369b /compton.c | |
parent | b5116f646543d1bcc72f3fd1e9c54be10d9ea8a7 (diff) | |
download | tdebase-74d91eb38534746efa0b21f2244ba6b41e5440ba.tar.gz tdebase-74d91eb38534746efa0b21f2244ba6b41e5440ba.zip |
Misc: Fix gcc error
Fix gcc compilation error about "initializer element is not constant".
Diffstat (limited to 'compton.c')
-rw-r--r-- | compton.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -5155,15 +5155,13 @@ get_cfg(session_t *ps, int argc, char *const *argv, bool first_pass) { // Fill default blur kernel if (ps->o.blur_background && !ps->o.blur_kern) { - const static int convolution_blur_size = 3; // Convolution filter parameter (box blur) // gaussian or binomial filters are definitely superior, yet looks // like they aren't supported as of xorg-server-1.13.0 const static XFixed convolution_blur[] = { // Must convert to XFixed with XDoubleToFixed() // Matrix size - XDoubleToFixed(convolution_blur_size), - XDoubleToFixed(convolution_blur_size), + XDoubleToFixed(3), XDoubleToFixed(3), // Matrix XDoubleToFixed(1), XDoubleToFixed(1), XDoubleToFixed(1), XDoubleToFixed(1), XDoubleToFixed(1), XDoubleToFixed(1), |