summaryrefslogtreecommitdiffstats
path: root/minui/graphics.cpp
diff options
context:
space:
mode:
authorRahul Chaudhry <rahulchaudhry@google.com>2016-11-09 01:35:22 +0100
committerTao Bao <tbao@google.com>2016-11-16 08:25:57 +0100
commit1cf93f5f74680e22044c6e0051a975770a4b819b (patch)
treea9350bc8e8a49bf7324dfdc06b3d4d8c933a4eb4 /minui/graphics.cpp
parentUse static_cast to cast pointers returned by malloc/calloc/realloc/mmap. (diff)
downloadandroid_bootable_recovery-1cf93f5f74680e22044c6e0051a975770a4b819b.tar
android_bootable_recovery-1cf93f5f74680e22044c6e0051a975770a4b819b.tar.gz
android_bootable_recovery-1cf93f5f74680e22044c6e0051a975770a4b819b.tar.bz2
android_bootable_recovery-1cf93f5f74680e22044c6e0051a975770a4b819b.tar.lz
android_bootable_recovery-1cf93f5f74680e22044c6e0051a975770a4b819b.tar.xz
android_bootable_recovery-1cf93f5f74680e22044c6e0051a975770a4b819b.tar.zst
android_bootable_recovery-1cf93f5f74680e22044c6e0051a975770a4b819b.zip
Diffstat (limited to '')
-rw-r--r--minui/graphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/minui/graphics.cpp b/minui/graphics.cpp
index 0680c32bb..dcca3ec41 100644
--- a/minui/graphics.cpp
+++ b/minui/graphics.cpp
@@ -306,7 +306,7 @@ static void gr_init_font(void)
gr_font->texture->pixel_bytes = 1;
unsigned char* bits = static_cast<unsigned char*>(malloc(font.width * font.height));
- gr_font->texture->data = reinterpret_cast<unsigned char*>(bits);
+ gr_font->texture->data = bits;
unsigned char data;
unsigned char* in = font.rundata;