get rid of unused/needed flags

This commit is contained in:
Mathias Agopian 2009-05-05 18:30:52 -07:00
parent 988b8bd553
commit 295190f426
2 changed files with 1 additions and 7 deletions

View file

@ -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;

View file

@ -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;