From 4e562c07d07b9e49815be094271f79a2aa7a486f Mon Sep 17 00:00:00 2001 From: "jinhyung.jo" Date: Mon, 3 Sep 2012 13:29:14 +0900 Subject: [PATCH] [Title] Performance downs due to the brightness. [Type] Bugfix [Module] Emulator [Priority] Major [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] --- tizen/src/hw/maru_brightness.c | 7 ++++--- tizen/src/hw/maru_vga.c | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tizen/src/hw/maru_brightness.c b/tizen/src/hw/maru_brightness.c index ccbfdeba09..9bf09198eb 100644 --- a/tizen/src/hw/maru_brightness.c +++ b/tizen/src/hw/maru_brightness.c @@ -64,10 +64,11 @@ enum { uint32_t brightness_level = 24; uint32_t brightness_off = 0; -/* level : 1 ~ 24, interval : 6 or 7. */ +/* level : 1 ~ 23, interval : 6 or 7. */ +/* skip 24 level, set to default alpha */ uint8_t brightness_tbl[] = {97, /* level 0 : reserved for dimming */ -/* level 1 ~ 12 */ 104, 110, 116, 122, 128, 134, 140, 146, 152, 158, 164, 170, -/* level 13 ~ 24 */ 176, 182, 188, 194, 200, 206, 213, 220, 227, 234, 241, 248}; +/* level 1 ~ 11 */ 110, 116, 122, 128, 134, 140, 146, 152, 158, 164, 170, +/* level 12 ~ 23 */ 176, 182, 188, 194, 200, 206, 213, 220, 227, 234, 241, 248}; static uint64_t brightness_reg_read( void *opaque, target_phys_addr_t addr, unsigned size ) { switch ( addr & 0xFF ) { diff --git a/tizen/src/hw/maru_vga.c b/tizen/src/hw/maru_vga.c index b1e1614e52..555be0ee22 100644 --- a/tizen/src/hw/maru_vga.c +++ b/tizen/src/hw/maru_vga.c @@ -1190,7 +1190,7 @@ static void vga_draw_graphic(VGACommonState *s, int full_update) } else { - if ( brightness_level <= BRIGHTNESS_MAX ) { + if ( brightness_level < BRIGHTNESS_MAX ) { alpha = brightness_tbl[brightness_level]; -- 2.34.1