From 470f6bd314acbf5c2c8a408f5f00b5ce55d5eab4 Mon Sep 17 00:00:00 2001 From: Tim Wan Date: Wed, 13 Apr 2011 15:18:08 +0200 Subject: Add support for hw.lcd.backlight Change-Id: I02dc12caa76c86de5d294b6fc857ae37b74f0130 --- android/hw-control.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'android/hw-control.c') diff --git a/android/hw-control.c b/android/hw-control.c index 6dac8c2..9180383 100644 --- a/android/hw-control.c +++ b/android/hw-control.c @@ -23,6 +23,7 @@ #include "android/hw-control.h" #include "cbuffer.h" #include "android/hw-qemud.h" +#include "android/globals.h" #include "android/utils/misc.h" #include "android/utils/debug.h" #include "qemu-char.h" @@ -98,7 +99,7 @@ hw_control_do_query( HwControl* h, q = if_starts_with( query, querylen, "power:light:brightness:" ); if (q != NULL) { - if (h->client_funcs.light_brightness) { + if (h->client_funcs.light_brightness && android_hw->hw_lcd_backlight) { char* qq = strchr((const char*)q, ':'); int value; if (qq == NULL) { -- cgit v1.1