summaryrefslogtreecommitdiffstats
path: root/minui/graphics_fbdev.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-11-16 19:10:53 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-11-16 19:10:54 +0100
commit0bedc8e14c8872393ed1a9c3daad4091a3c90b0d (patch)
tree7c5ac472f60ca965c98eb2cf547f8685bcdd3101 /minui/graphics_fbdev.cpp
parentMerge "updater: Fix the wrong return value for package_extract_file()." (diff)
parentUse static_cast to cast pointers returned by malloc/calloc/realloc/mmap. (diff)
downloadandroid_bootable_recovery-0bedc8e14c8872393ed1a9c3daad4091a3c90b0d.tar
android_bootable_recovery-0bedc8e14c8872393ed1a9c3daad4091a3c90b0d.tar.gz
android_bootable_recovery-0bedc8e14c8872393ed1a9c3daad4091a3c90b0d.tar.bz2
android_bootable_recovery-0bedc8e14c8872393ed1a9c3daad4091a3c90b0d.tar.lz
android_bootable_recovery-0bedc8e14c8872393ed1a9c3daad4091a3c90b0d.tar.xz
android_bootable_recovery-0bedc8e14c8872393ed1a9c3daad4091a3c90b0d.tar.zst
android_bootable_recovery-0bedc8e14c8872393ed1a9c3daad4091a3c90b0d.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 */