diff options
author | Tao Bao <tbao@google.com> | 2017-03-24 21:32:39 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-03-24 21:32:39 +0100 |
commit | 92d8772c492113be3739db95e551a3772cd3d6fb (patch) | |
tree | 0feff3c2e55eb9be9731cd46bf657a1bd0cd6c25 /screen_ui.cpp | |
parent | Merge "Removed C-style casts" (diff) | |
parent | Merge "Const modifiers" (diff) | |
download | android_bootable_recovery-92d8772c492113be3739db95e551a3772cd3d6fb.tar android_bootable_recovery-92d8772c492113be3739db95e551a3772cd3d6fb.tar.gz android_bootable_recovery-92d8772c492113be3739db95e551a3772cd3d6fb.tar.bz2 android_bootable_recovery-92d8772c492113be3739db95e551a3772cd3d6fb.tar.lz android_bootable_recovery-92d8772c492113be3739db95e551a3772cd3d6fb.tar.xz android_bootable_recovery-92d8772c492113be3739db95e551a3772cd3d6fb.tar.zst android_bootable_recovery-92d8772c492113be3739db95e551a3772cd3d6fb.zip |
Diffstat (limited to '')
-rw-r--r-- | screen_ui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp index 706877b4d..bb2772dd8 100644 --- a/screen_ui.cpp +++ b/screen_ui.cpp @@ -98,7 +98,7 @@ GRSurface* ScreenRecoveryUI::GetCurrentText() { } } -int ScreenRecoveryUI::PixelsFromDp(int dp) { +int ScreenRecoveryUI::PixelsFromDp(int dp) const { return dp * density_; } @@ -256,12 +256,12 @@ void ScreenRecoveryUI::DrawHorizontalRule(int* y) { *y += 4; } -void ScreenRecoveryUI::DrawTextLine(int x, int* y, const char* line, bool bold) { +void ScreenRecoveryUI::DrawTextLine(int x, int* y, const char* line, bool bold) const { gr_text(gr_sys_font(), x, *y, line, bold); *y += char_height_ + 4; } -void ScreenRecoveryUI::DrawTextLines(int x, int* y, const char* const* lines) { +void ScreenRecoveryUI::DrawTextLines(int x, int* y, const char* const* lines) const { for (size_t i = 0; lines != nullptr && lines[i] != nullptr; ++i) { DrawTextLine(x, y, lines[i], false); } |