summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2014-03-07 03:02:21 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-07 03:02:21 +0000
commit92dfde25254b5b65e2a5c73fa8c2e9faef15c785 (patch)
tree62ce9c922b56582f5356dcf4f301b0b2ecdf817b /modules
parenta34eaccfe3b68ed3cf6bd7232325e82346b4ab9c (diff)
parent8a90666cccac19314216ab1ff8b99ecb854ccf04 (diff)
downloadhardware_libhardware-92dfde25254b5b65e2a5c73fa8c2e9faef15c785.zip
hardware_libhardware-92dfde25254b5b65e2a5c73fa8c2e9faef15c785.tar.gz
hardware_libhardware-92dfde25254b5b65e2a5c73fa8c2e9faef15c785.tar.bz2
am 8a90666c: am 282ab1b6: Merge "gralloc: dont hardcode 32bpp as RGBX"
* commit '8a90666cccac19314216ab1ff8b99ecb854ccf04': gralloc: dont hardcode 32bpp as RGBX
Diffstat (limited to 'modules')
-rw-r--r--modules/gralloc/framebuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gralloc/framebuffer.cpp b/modules/gralloc/framebuffer.cpp
index 326f2ae..9d8513a 100644
--- a/modules/gralloc/framebuffer.cpp
+++ b/modules/gralloc/framebuffer.cpp
@@ -330,7 +330,7 @@ int fb_device_open(hw_module_t const* module, const char* name,
if (status >= 0) {
int stride = m->finfo.line_length / (m->info.bits_per_pixel >> 3);
int format = (m->info.bits_per_pixel == 32)
- ? HAL_PIXEL_FORMAT_RGBX_8888
+ ? (m->info.red.offset ? HAL_PIXEL_FORMAT_BGRA_8888 : HAL_PIXEL_FORMAT_RGBX_8888)
: HAL_PIXEL_FORMAT_RGB_565;
const_cast<uint32_t&>(dev->device.flags) = 0;
const_cast<uint32_t&>(dev->device.width) = m->info.xres;