diff options
author | android-build-prod (mdb) <android-build-team-robot@google.com> | 2018-05-03 04:12:48 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-05-03 04:12:48 +0200 |
commit | b4ded4a6ced2010b04ae6fa03ae27c2621bfab38 (patch) | |
tree | 71f8596358d2b86e4406f21c8dbe58b90cad96fb /vr_ui.cpp | |
parent | Merge "screen_ui: Drop the dependency on common.h." (diff) | |
parent | screen_ui: Use std::string in DrawTextLine() and siblings. (diff) | |
download | android_bootable_recovery-b4ded4a6ced2010b04ae6fa03ae27c2621bfab38.tar android_bootable_recovery-b4ded4a6ced2010b04ae6fa03ae27c2621bfab38.tar.gz android_bootable_recovery-b4ded4a6ced2010b04ae6fa03ae27c2621bfab38.tar.bz2 android_bootable_recovery-b4ded4a6ced2010b04ae6fa03ae27c2621bfab38.tar.lz android_bootable_recovery-b4ded4a6ced2010b04ae6fa03ae27c2621bfab38.tar.xz android_bootable_recovery-b4ded4a6ced2010b04ae6fa03ae27c2621bfab38.tar.zst android_bootable_recovery-b4ded4a6ced2010b04ae6fa03ae27c2621bfab38.zip |
Diffstat (limited to 'vr_ui.cpp')
-rw-r--r-- | vr_ui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -39,9 +39,9 @@ void VrRecoveryUI::DrawTextIcon(int x, int y, GRSurface* surface) const { gr_texticon(x - kStereoOffset + ScreenWidth(), y, surface); } -int VrRecoveryUI::DrawTextLine(int x, int y, const char* line, bool bold) const { - gr_text(gr_sys_font(), x + kStereoOffset, y, line, bold); - gr_text(gr_sys_font(), x - kStereoOffset + ScreenWidth(), y, line, bold); +int VrRecoveryUI::DrawTextLine(int x, int y, const std::string& line, bool bold) const { + gr_text(gr_sys_font(), x + kStereoOffset, y, line.c_str(), bold); + gr_text(gr_sys_font(), x - kStereoOffset + ScreenWidth(), y, line.c_str(), bold); return char_height_ + 4; } |