summaryrefslogtreecommitdiffstats
path: root/libhwcomposer/SecHWC.cpp
diff options
context:
space:
mode:
authorjung-min.oh <jung-min.oh@samsung.com>2011-11-18 21:41:14 +0900
committerMathias Agopian <mathias@google.com>2011-11-21 15:04:00 -0800
commit7c4b5c2d1820cdf3b753af4057b9f8b56d6a408d (patch)
tree05393c050e14d44584bc7886878036cfd6736b74 /libhwcomposer/SecHWC.cpp
parent037a316053578a4fc520d5311ee322bad1d291fe (diff)
downloaddevice_samsung_crespo-7c4b5c2d1820cdf3b753af4057b9f8b56d6a408d.zip
device_samsung_crespo-7c4b5c2d1820cdf3b753af4057b9f8b56d6a408d.tar.gz
device_samsung_crespo-7c4b5c2d1820cdf3b753af4057b9f8b56d6a408d.tar.bz2
libhwcomposer: fix to get correct fb information after runtime restart
Modify to get fb information from default window in order to get correct information after runtime restart. This patch is for Issue 5624445. Change-Id: I4e7741637032b69a9e4d3a11f7273a766f77e5d9 Signed-off-by: jung-min.oh <jung-min.oh@samsung.com>
Diffstat (limited to 'libhwcomposer/SecHWC.cpp')
-rw-r--r--libhwcomposer/SecHWC.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libhwcomposer/SecHWC.cpp b/libhwcomposer/SecHWC.cpp
index 0f81277..c9970a1 100644
--- a/libhwcomposer/SecHWC.cpp
+++ b/libhwcomposer/SecHWC.cpp
@@ -487,7 +487,8 @@ static int hwc_device_open(const struct hw_module_t* module, const char* name,
}
}
- if (window_get_global_lcd_info(dev->win[0].fd, &dev->lcd_info) < 0) {
+ /* get default window config */
+ if (window_get_global_lcd_info(&dev->lcd_info) < 0) {
LOGE("%s::window_get_global_lcd_info is failed : %s",
__func__, strerror(errno));
status = -EINVAL;