Adjust the brightness value with slp value.
authorHokwon Song <hokwon.song@samsung.com>
Thu, 18 Apr 2013 06:00:03 +0000 (15:00 +0900)
committerHokwon Song <hokwon.song@samsung.com>
Thu, 18 Apr 2013 06:00:03 +0000 (15:00 +0900)
Change-Id: I04d2468cd110768ab6de9f260e7c5a501d8edbdf
Signed-off-by: Hokwon Song <hokwon.song@samsung.com>
src/system/FSys_PowerManagerImpl.cpp

index 1aced1c..76c5610 100644 (file)
@@ -301,6 +301,7 @@ ScreenEventVConfCallback(keynode_t* node, void* userData)
                                SysLogException(NID_SYS, E_SYSTEM, "It failed to get the device max brightness");
                                maxBrightness = 100;
                        }
+                       sysBrightness = (sysBrightness == 0) ? 1 : sysBrightness;
                        brightness = (int)ceil(((_BRIGHTNESS_RESOLUTION / (float) maxBrightness)) * sysBrightness);
                        pIScreenEventListener->OnScreenBrightnessChanged(brightness);
                }