summaryrefslogtreecommitdiffstats
path: root/minui/graphics_fbdev.cpp
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2016-11-10 02:12:43 +0100
committerAndroid (Google) Code Review <android-gerrit@google.com>2016-11-10 02:12:43 +0100
commitf78a6cb5060298c22a12b1117deb8d1d12d8e129 (patch)
treed94a38c2109de3c09b9ae632cc9c4a92eabf382d /minui/graphics_fbdev.cpp
parentMerge "Touch blocks in care_map in update_verifier" am: 3605a072bc -s ours am: 96c3c32b66 am: b86af2577c (diff)
parentUse static_cast to cast pointers returned by malloc/calloc/realloc/mmap. (diff)
downloadandroid_bootable_recovery-f78a6cb5060298c22a12b1117deb8d1d12d8e129.tar
android_bootable_recovery-f78a6cb5060298c22a12b1117deb8d1d12d8e129.tar.gz
android_bootable_recovery-f78a6cb5060298c22a12b1117deb8d1d12d8e129.tar.bz2
android_bootable_recovery-f78a6cb5060298c22a12b1117deb8d1d12d8e129.tar.lz
android_bootable_recovery-f78a6cb5060298c22a12b1117deb8d1d12d8e129.tar.xz
android_bootable_recovery-f78a6cb5060298c22a12b1117deb8d1d12d8e129.tar.zst
android_bootable_recovery-f78a6cb5060298c22a12b1117deb8d1d12d8e129.zip
Diffstat (limited to 'minui/graphics_fbdev.cpp')
-rw-r--r--minui/graphics_fbdev.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/minui/graphics_fbdev.cpp b/minui/graphics_fbdev.cpp
index 0788f7552..631ef4e13 100644
--- a/minui/graphics_fbdev.cpp
+++ b/minui/graphics_fbdev.cpp
@@ -133,7 +133,7 @@ static GRSurface* fbdev_init(minui_backend* backend) {
gr_framebuffer[0].height = vi.yres;
gr_framebuffer[0].row_bytes = fi.line_length;
gr_framebuffer[0].pixel_bytes = vi.bits_per_pixel / 8;
- gr_framebuffer[0].data = reinterpret_cast<uint8_t*>(bits);
+ gr_framebuffer[0].data = static_cast<uint8_t*>(bits);
memset(gr_framebuffer[0].data, 0, gr_framebuffer[0].height * gr_framebuffer[0].row_bytes);
/* check if we can use double buffering */