diff options
author | Tao Bao <tbao@google.com> | 2017-09-11 21:08:53 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-09-11 21:08:53 +0200 |
commit | f51754a8b9876ed4dc16a873811097f2d854f759 (patch) | |
tree | f4511f46a2a16971346d65941d572a86ec342715 /screen_ui.cpp | |
parent | ui: Manage menu_ with std::vector. am: 17fa5c7cab (diff) | |
parent | Merge "ui: Refactor the declaration orders." am: 79a23b30d2 am: cb94b611cf (diff) | |
download | android_bootable_recovery-f51754a8b9876ed4dc16a873811097f2d854f759.tar android_bootable_recovery-f51754a8b9876ed4dc16a873811097f2d854f759.tar.gz android_bootable_recovery-f51754a8b9876ed4dc16a873811097f2d854f759.tar.bz2 android_bootable_recovery-f51754a8b9876ed4dc16a873811097f2d854f759.tar.lz android_bootable_recovery-f51754a8b9876ed4dc16a873811097f2d854f759.tar.xz android_bootable_recovery-f51754a8b9876ed4dc16a873811097f2d854f759.tar.zst android_bootable_recovery-f51754a8b9876ed4dc16a873811097f2d854f759.zip |
Diffstat (limited to 'screen_ui.cpp')
-rw-r--r-- | screen_ui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp index b8f6ea28b..c8dec4d50 100644 --- a/screen_ui.cpp +++ b/screen_ui.cpp @@ -54,7 +54,7 @@ ScreenRecoveryUI::ScreenRecoveryUI() : kMarginWidth(RECOVERY_UI_MARGIN_WIDTH), kMarginHeight(RECOVERY_UI_MARGIN_HEIGHT), kAnimationFps(RECOVERY_UI_ANIMATION_FPS), - density_(static_cast<float>(android::base::GetIntProperty("ro.sf.lcd_density", 160)) / 160.f), + kDensity(static_cast<float>(android::base::GetIntProperty("ro.sf.lcd_density", 160)) / 160.f), currentIcon(NONE), progressBarType(EMPTY), progressScopeStart(0), @@ -105,7 +105,7 @@ GRSurface* ScreenRecoveryUI::GetCurrentText() const { } int ScreenRecoveryUI::PixelsFromDp(int dp) const { - return dp * density_; + return dp * kDensity; } // Here's the intended layout: |