summaryrefslogtreecommitdiffstats
path: root/vr_ui.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-07-02 04:54:16 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-07-02 04:54:16 +0200
commit154a6e71a68a43c4dbd715745e120f27aac10e19 (patch)
tree3b77dc4311e746e4d1c4f97aca0dc245e09f6434 /vr_ui.cpp
parentscreen_ui: Compute the top and bottom gaps. am: f95e686dd0 -s ours (diff)
parentMerge "Update ScreenRecoveryUI::Draw* function signatures." am: c8e338fa9c am: c24d97fafa (diff)
downloadandroid_bootable_recovery-154a6e71a68a43c4dbd715745e120f27aac10e19.tar
android_bootable_recovery-154a6e71a68a43c4dbd715745e120f27aac10e19.tar.gz
android_bootable_recovery-154a6e71a68a43c4dbd715745e120f27aac10e19.tar.bz2
android_bootable_recovery-154a6e71a68a43c4dbd715745e120f27aac10e19.tar.lz
android_bootable_recovery-154a6e71a68a43c4dbd715745e120f27aac10e19.tar.xz
android_bootable_recovery-154a6e71a68a43c4dbd715745e120f27aac10e19.tar.zst
android_bootable_recovery-154a6e71a68a43c4dbd715745e120f27aac10e19.zip
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 8b8261e35..125167268 100644
--- a/vr_ui.cpp
+++ b/vr_ui.cpp
@@ -27,9 +27,9 @@ bool VrRecoveryUI::InitTextParams() {
return true;
}
-void VrRecoveryUI::DrawTextLine(int x, int* y, const char* line, bool bold) const {
+int VrRecoveryUI::DrawTextLine(int x, int y, const char* line, bool bold) const {
int mid_divide = gr_fb_width() / 2;
- gr_text(gr_sys_font(), x + kStereoOffset, *y, line, bold);
- gr_text(gr_sys_font(), x - kStereoOffset + mid_divide, *y, line, bold);
- *y += char_height_ + 4;
+ gr_text(gr_sys_font(), x + kStereoOffset, y, line, bold);
+ gr_text(gr_sys_font(), x - kStereoOffset + mid_divide, y, line, bold);
+ return char_height_ + 4;
}