summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'kde-misc/nightmode/files/nightmode-0.3-kde-4.10.patch')
-rw-r--r--kde-misc/nightmode/files/nightmode-0.3-kde-4.10.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/kde-misc/nightmode/files/nightmode-0.3-kde-4.10.patch b/kde-misc/nightmode/files/nightmode-0.3-kde-4.10.patch
new file mode 100644
index 00000000000..f1f0da20749
--- /dev/null
+++ b/kde-misc/nightmode/files/nightmode-0.3-kde-4.10.patch
@@ -0,0 +1,13 @@
+Fixes build error caused by API changes in KDE 4.10
+
+--- nightmode.cpp
++++ nightmode.cpp
+@@ -74,7 +74,7 @@
+ void NightmodeEffect::paintWindow(EffectWindow *w, int mask, QRegion region, WindowPaintData &data )
+ {
+ if (m_active) {
+- data.brightness *= (m_brightness / 100.0);
++ data.setBrightness(data.brightness() * (m_brightness / 100.0));
+ // data.saturation *= (m_brightness / 100.0);
+ }
+ effects->paintWindow( w, mask, region, data );