summaryrefslogtreecommitdiffstats
path: root/minui
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-11-27 05:52:56 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-11-27 05:52:56 +0100
commitea4ec3149b0c4f4eef30e77f6b65cb60b36c81f8 (patch)
treeaddc9f10afc8eec7944db56f7ba58321f092ece1 /minui
parentMerge changes I7b7cee68,I07d22c0d (diff)
parentminui: Fix a wrong arg in calling GRSurface::Create(). (diff)
downloadandroid_bootable_recovery-ea4ec3149b0c4f4eef30e77f6b65cb60b36c81f8.tar
android_bootable_recovery-ea4ec3149b0c4f4eef30e77f6b65cb60b36c81f8.tar.gz
android_bootable_recovery-ea4ec3149b0c4f4eef30e77f6b65cb60b36c81f8.tar.bz2
android_bootable_recovery-ea4ec3149b0c4f4eef30e77f6b65cb60b36c81f8.tar.lz
android_bootable_recovery-ea4ec3149b0c4f4eef30e77f6b65cb60b36c81f8.tar.xz
android_bootable_recovery-ea4ec3149b0c4f4eef30e77f6b65cb60b36c81f8.tar.zst
android_bootable_recovery-ea4ec3149b0c4f4eef30e77f6b65cb60b36c81f8.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;