diff options
author | Tao Bao <tbao@google.com> | 2017-07-02 04:49:46 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-07-02 04:49:46 +0200 |
commit | 7e3b1c00c6c17891d0c3b55fa2468d4946d73c26 (patch) | |
tree | 82ee71b08bd23edc9cffd6c6e88a8cef96e2f82f /vr_ui.cpp | |
parent | Merge "screen_ui: Compute the top and bottom gaps." am: 344778c4ef (diff) | |
parent | Merge "Update ScreenRecoveryUI::Draw* function signatures." (diff) | |
download | android_bootable_recovery-7e3b1c00c6c17891d0c3b55fa2468d4946d73c26.tar android_bootable_recovery-7e3b1c00c6c17891d0c3b55fa2468d4946d73c26.tar.gz android_bootable_recovery-7e3b1c00c6c17891d0c3b55fa2468d4946d73c26.tar.bz2 android_bootable_recovery-7e3b1c00c6c17891d0c3b55fa2468d4946d73c26.tar.lz android_bootable_recovery-7e3b1c00c6c17891d0c3b55fa2468d4946d73c26.tar.xz android_bootable_recovery-7e3b1c00c6c17891d0c3b55fa2468d4946d73c26.tar.zst android_bootable_recovery-7e3b1c00c6c17891d0c3b55fa2468d4946d73c26.zip |
Diffstat (limited to 'vr_ui.cpp')
-rw-r--r-- | vr_ui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } |