summaryrefslogtreecommitdiffstats
path: root/vr_ui.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-05-02 23:57:21 +0200
committerTao Bao <tbao@google.com>2018-05-03 00:32:48 +0200
commit93e46ad42658fd61104d0c3998ec5c7da2042179 (patch)
tree71f8596358d2b86e4406f21c8dbe58b90cad96fb /vr_ui.cpp
parentMerge "screen_ui: Drop the dependency on common.h." (diff)
downloadandroid_bootable_recovery-93e46ad42658fd61104d0c3998ec5c7da2042179.tar
android_bootable_recovery-93e46ad42658fd61104d0c3998ec5c7da2042179.tar.gz
android_bootable_recovery-93e46ad42658fd61104d0c3998ec5c7da2042179.tar.bz2
android_bootable_recovery-93e46ad42658fd61104d0c3998ec5c7da2042179.tar.lz
android_bootable_recovery-93e46ad42658fd61104d0c3998ec5c7da2042179.tar.xz
android_bootable_recovery-93e46ad42658fd61104d0c3998ec5c7da2042179.tar.zst
android_bootable_recovery-93e46ad42658fd61104d0c3998ec5c7da2042179.zip
Diffstat (limited to '')
-rw-r--r--vr_ui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/vr_ui.cpp b/vr_ui.cpp
index a58c99efd..b1ef646c9 100644
--- a/vr_ui.cpp
+++ b/vr_ui.cpp
@@ -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;
}