diff options
Diffstat (limited to 'gralloc/framebuffer.cpp')
-rw-r--r-- | gralloc/framebuffer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gralloc/framebuffer.cpp b/gralloc/framebuffer.cpp index 63f2e65..85457f3 100644 --- a/gralloc/framebuffer.cpp +++ b/gralloc/framebuffer.cpp @@ -257,8 +257,12 @@ int fb_device_open(hw_module_t const* module, const char* name, int format = HAL_PIXEL_FORMAT_RGB_565; #else int bits_per_pixel = 32; +#ifdef USE_BGRA_8888 + int format = HAL_PIXEL_FORMAT_BGRA_8888; +#else int format = HAL_PIXEL_FORMAT_RGBA_8888; #endif +#endif alloc_device_t* gralloc_device; status = gralloc_open(module, &gralloc_device); |