diff options
Diffstat (limited to '')
-rw-r--r-- | src/cg-sleepmode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cg-sleepmode.c b/src/cg-sleepmode.c index dd6f3e5..9c1fbf7 100644 --- a/src/cg-sleepmode.c +++ b/src/cg-sleepmode.c @@ -321,7 +321,7 @@ int start(void) for (i = 0, r = 1; i < filters_n; i++) { - if (!(crtc_updates[i].master) || !(crtc_info[i].supported)) + if (!(crtc_updates[i].master) || !(crtc_info[crtc_updates[i].crtc].supported)) continue; fill_filter(&(crtc_updates[i].filter), red, green, blue); r = update_filter(i, 0); @@ -421,7 +421,7 @@ int start(void) for (i = 0, r = 1; i < filters_n; i++) { - if (!(crtc_updates[i].master) || !(crtc_info[i].supported)) + if (!(crtc_updates[i].master) || !(crtc_info[crtc_updates[i].crtc].supported)) continue; fill_filter(&(crtc_updates[i].filter), red, green, blue); r = update_filter(i, 0); |