diff options
Diffstat (limited to 'libhwcomposer/SecHWC.cpp')
-rw-r--r-- | libhwcomposer/SecHWC.cpp | 3 |
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; |