aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao2017-06-28 16:52:17 -0500
committerTao Bao2017-07-01 19:41:24 -0500
commitea78d86b44661c69fcb740b9d40b47af821dbd57 (patch)
tree42bc24468b6d9ba025cf10d0ba1d855295cc8e3d /vr_ui.cpp
parent344778c4efddb7701fa8234b51429d27a030356c (diff)
downloadplatform-bootable-recovery-ea78d86b44661c69fcb740b9d40b47af821dbd57.tar.gz
platform-bootable-recovery-ea78d86b44661c69fcb740b9d40b47af821dbd57.tar.xz
platform-bootable-recovery-ea78d86b44661c69fcb740b9d40b47af821dbd57.zip
Update ScreenRecoveryUI::Draw* function signatures.
Move away from taking int* for the Y-offset. Change it to int and return the offset instead. Test: Check the recovery menu and 'Wipe data' menu. Change-Id: Ib15e070a0d576a0f8f66f35605cb8479e7071f26
Diffstat (limited to 'vr_ui.cpp')
-rw-r--r--vr_ui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/vr_ui.cpp b/vr_ui.cpp
index 8b8261e3..12516726 100644
--- a/vr_ui.cpp
+++ b/vr_ui.cpp
@@ -27,9 +27,9 @@ bool VrRecoveryUI::InitTextParams() {
27 return true; 27 return true;
28} 28}
29 29
30void VrRecoveryUI::DrawTextLine(int x, int* y, const char* line, bool bold) const { 30int VrRecoveryUI::DrawTextLine(int x, int y, const char* line, bool bold) const {
31 int mid_divide = gr_fb_width() / 2; 31 int mid_divide = gr_fb_width() / 2;
32 gr_text(gr_sys_font(), x + kStereoOffset, *y, line, bold); 32 gr_text(gr_sys_font(), x + kStereoOffset, y, line, bold);
33 gr_text(gr_sys_font(), x - kStereoOffset + mid_divide, *y, line, bold); 33 gr_text(gr_sys_font(), x - kStereoOffset + mid_divide, y, line, bold);
34 *y += char_height_ + 4; 34 return char_height_ + 4;
35} 35}