summaryrefslogtreecommitdiffstats
path: root/minui
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-11-27 00:46:05 +0100
committerTao Bao <tbao@google.com>2018-11-27 02:06:53 +0100
commit2201d08f8dc9d48bcb4bd13690e061013bdeeb91 (patch)
treeaddc9f10afc8eec7944db56f7ba58321f092ece1 /minui
parentMerge changes I7b7cee68,I07d22c0d (diff)
downloadandroid_bootable_recovery-2201d08f8dc9d48bcb4bd13690e061013bdeeb91.tar
android_bootable_recovery-2201d08f8dc9d48bcb4bd13690e061013bdeeb91.tar.gz
android_bootable_recovery-2201d08f8dc9d48bcb4bd13690e061013bdeeb91.tar.bz2
android_bootable_recovery-2201d08f8dc9d48bcb4bd13690e061013bdeeb91.tar.lz
android_bootable_recovery-2201d08f8dc9d48bcb4bd13690e061013bdeeb91.tar.xz
android_bootable_recovery-2201d08f8dc9d48bcb4bd13690e061013bdeeb91.tar.zst
android_bootable_recovery-2201d08f8dc9d48bcb4bd13690e061013bdeeb91.zip
Diffstat (limited to 'minui')
-rw-r--r--minui/resources.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/minui/resources.cpp b/minui/resources.cpp
index c7af1904d..057d3fd03 100644
--- a/minui/resources.cpp
+++ b/minui/resources.cpp
@@ -261,7 +261,7 @@ int res_create_multi_display_surface(const char* name, int* frames, int* fps,
for (int i = 0; i < *frames; ++i) {
auto height_per_frame = height / *frames;
auto created_surface =
- GRSurface::Create(width, height_per_frame, width * 4, 4, width * height_per_frame);
+ GRSurface::Create(width, height_per_frame, width * 4, 4, width * height_per_frame * 4);
if (!created_surface) {
result = -8;
goto exit;