diff options
-rw-r--r-- | include/hardware/gralloc.h | 6 | ||||
-rw-r--r-- | modules/gralloc/framebuffer.cpp | 2 |
2 files changed, 1 insertions, 7 deletions
diff --git a/include/hardware/gralloc.h b/include/hardware/gralloc.h index c1724cc..6bde8f7 100644 --- a/include/hardware/gralloc.h +++ b/include/hardware/gralloc.h @@ -71,12 +71,6 @@ enum { GRALLOC_USAGE_HW_MASK = 0x00001F00, }; -enum { - /* the framebuffer is mapped in memory */ - FRAMEBUFFER_RESERVED0 = 0x00000001, - FRAMEBUFFER_FLAG_MAPPED = 0x00000002, -}; - /*****************************************************************************/ typedef const native_handle* buffer_handle_t; diff --git a/modules/gralloc/framebuffer.cpp b/modules/gralloc/framebuffer.cpp index 31adfca..5077a0d 100644 --- a/modules/gralloc/framebuffer.cpp +++ b/modules/gralloc/framebuffer.cpp @@ -347,7 +347,7 @@ int fb_device_open(hw_module_t const* module, const char* name, status = mapFrameBuffer(m); if (status >= 0) { int stride = m->finfo.line_length / (m->info.bits_per_pixel >> 3); - const_cast<uint32_t&>(dev->device.flags) = FRAMEBUFFER_FLAG_MAPPED; + const_cast<uint32_t&>(dev->device.flags) = 0; const_cast<uint32_t&>(dev->device.width) = m->info.xres; const_cast<uint32_t&>(dev->device.height) = m->info.yres; const_cast<int&>(dev->device.stride) = stride; |