projects
/
platform
/
framework
/
native
/
appfw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b703d1
)
Adjust the brightness value with slp value.
author
Hokwon Song
<hokwon.song@samsung.com>
Thu, 18 Apr 2013 06:00:03 +0000
(15:00 +0900)
committer
Hokwon 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
patch
|
blob
|
history
diff --git
a/src/system/FSys_PowerManagerImpl.cpp
b/src/system/FSys_PowerManagerImpl.cpp
index
1aced1c
..
76c5610
100644
(file)
--- a/
src/system/FSys_PowerManagerImpl.cpp
+++ b/
src/system/FSys_PowerManagerImpl.cpp
@@
-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);
}