aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2009-01-14 10:11:26 +0000
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2009-01-14 10:11:26 +0000
commit523273d8c8d18e14058ea672353ae1a10dfeead7 (patch)
tree4941fa9c9f5915dc159d400bd22f3913bce387a2
parent78f1906b0526431bb9000f822df141f32488c5cd (diff)
downloadlcd4linux-523273d8c8d18e14058ea672353ae1a10dfeead7.tar.gz
initial brightness fixed
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@963 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-rw-r--r--drv_X11.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drv_X11.c b/drv_X11.c
index 4a2e08b..697ef2d 100644
--- a/drv_X11.c
+++ b/drv_X11.c
@@ -123,8 +123,6 @@ static void drv_X11_blit(const int row, const int col, const int height, const i
RGBA p1 = drv_X11_FB[r * DCOLS + c];
RGBA p2 = drv_generic_graphic_rgb(r, c);
if (p1.R != p2.R || p1.G != p2.G || p1.B != p2.B) {
- //drv_X11_color(p2, 255); /* Fixme: this call is so slow... */
- //XFillRectangle(dp, w, gc, x, y, pixel, pixel);
XClearArea(dp, w, x, y, pixel, pixel, 1);
drv_X11_FB[r * DCOLS + c] = p2;
}
@@ -562,6 +560,7 @@ int drv_X11_list(void)
/* initialize driver & display */
int drv_X11_init(const char *section, const int quiet)
{
+ RGBA bl_col;
int ret;
info("%s: %s", Name, "$Rev$");
@@ -575,9 +574,11 @@ int drv_X11_init(const char *section, const int quiet)
drv_generic_keypad_real_press = drv_X11_keypad;
/* initialize generic graphic driver */
+ /* save BL_COL which may already be dimmed */
+ bl_col = BL_COL;
if ((ret = drv_generic_graphic_init(section, Name)) != 0)
return ret;
- BL_COL = BP_COL;
+ BL_COL = bl_col;
/* initialize generic key pad driver */
if ((ret = drv_generic_keypad_init(section, Name)) != 0)