summaryrefslogtreecommitdiffstats
path: root/screen_ui.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-03-24 21:28:09 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-03-24 21:28:09 +0100
commit4efd353d8ff6ba9c0b3109a0be4e410e6be170d2 (patch)
tree0af98bfc9645d87a46ccf263b254df50636be9fc /screen_ui.cpp
parentMerge "Removed C-style casts" (diff)
parentConst modifiers (diff)
downloadandroid_bootable_recovery-4efd353d8ff6ba9c0b3109a0be4e410e6be170d2.tar
android_bootable_recovery-4efd353d8ff6ba9c0b3109a0be4e410e6be170d2.tar.gz
android_bootable_recovery-4efd353d8ff6ba9c0b3109a0be4e410e6be170d2.tar.bz2
android_bootable_recovery-4efd353d8ff6ba9c0b3109a0be4e410e6be170d2.tar.lz
android_bootable_recovery-4efd353d8ff6ba9c0b3109a0be4e410e6be170d2.tar.xz
android_bootable_recovery-4efd353d8ff6ba9c0b3109a0be4e410e6be170d2.tar.zst
android_bootable_recovery-4efd353d8ff6ba9c0b3109a0be4e410e6be170d2.zip
Diffstat (limited to 'screen_ui.cpp')
-rw-r--r--screen_ui.cpp6
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);
}