aboutsummaryrefslogtreecommitdiffstats
path: root/drv_X11.c
diff options
context:
space:
mode:
authorvolker <volker@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2009-01-18 13:58:54 +0000
committervolker <volker@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2009-01-18 13:58:54 +0000
commit06ad9f70dce10bdfb5c14d99fddc9bdb0796f016 (patch)
tree428fc6d1ced48bc8db7163d98e01c5eb84f3dc7d /drv_X11.c
parent78cace3b47122fe173c4d43c5e314cac78f29eea (diff)
downloadlcd4linux-06ad9f70dce10bdfb5c14d99fddc9bdb0796f016.tar.gz
Brightness dimms every color
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@976 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_X11.c')
-rw-r--r--drv_X11.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drv_X11.c b/drv_X11.c
index 92b44cc..6ff17df 100644
--- a/drv_X11.c
+++ b/drv_X11.c
@@ -171,10 +171,6 @@ static int drv_X11_brightness(int brightness)
debug("%s: set brightness to %d%%", Name, (int) (dim * 100));
- BL_COL.R = BP_COL.R * dim;
- BL_COL.G = BP_COL.G * dim;
- BL_COL.B = BP_COL.B * dim;
-
/* set new background */
XSetWindowBackground(dp, w, drv_X11_color(BR_COL, brightness).pixel);
@@ -460,7 +456,7 @@ static int drv_X11_start(const char *section)
/* special case for the X11 driver:
* the border color may be different from the backlight color
- * the backlicht color is the color of an inactive pixel
+ * the backlight color is the color of an inactive pixel
* the border color is the color of the border and gaps between pixels
* for the brightness pugin we need a copy of BL_COL, we call it BP_COL
*/