summaryrefslogtreecommitdiffstats
path: root/minui/graphics.cpp
diff options
context:
space:
mode:
authorRahul Chaudhry <rahulchaudhry@google.com>2016-11-16 22:37:25 +0100
committerandroid-build-merger <android-build-merger@google.com>2016-11-16 22:37:25 +0100
commit849a911dee4b47133605d78d623014a166b1854c (patch)
treed56d7512cb5564914fad42b211f49b4554377794 /minui/graphics.cpp
parentMerge "Use static_cast to cast pointers returned by malloc/calloc/realloc/mmap." (diff)
parentMerge "Remove unnecessary uses of reinterpret_cast." (diff)
downloadandroid_bootable_recovery-849a911dee4b47133605d78d623014a166b1854c.tar
android_bootable_recovery-849a911dee4b47133605d78d623014a166b1854c.tar.gz
android_bootable_recovery-849a911dee4b47133605d78d623014a166b1854c.tar.bz2
android_bootable_recovery-849a911dee4b47133605d78d623014a166b1854c.tar.lz
android_bootable_recovery-849a911dee4b47133605d78d623014a166b1854c.tar.xz
android_bootable_recovery-849a911dee4b47133605d78d623014a166b1854c.tar.zst
android_bootable_recovery-849a911dee4b47133605d78d623014a166b1854c.zip
Diffstat (limited to 'minui/graphics.cpp')
-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;