summaryrefslogtreecommitdiffstats
path: root/vr_ui.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-10-23 19:54:02 +0200
committerTao Bao <tbao@google.com>2018-10-23 19:56:54 +0200
commit65815b6d3a67cf07a01f28fb9ecb7bf05049754b (patch)
treebd2885d5234932bca8abe85db54f4bb5d44cb3ff /vr_ui.cpp
parentMerge "minui: Move GRSurface into a class." (diff)
downloadandroid_bootable_recovery-65815b6d3a67cf07a01f28fb9ecb7bf05049754b.tar
android_bootable_recovery-65815b6d3a67cf07a01f28fb9ecb7bf05049754b.tar.gz
android_bootable_recovery-65815b6d3a67cf07a01f28fb9ecb7bf05049754b.tar.bz2
android_bootable_recovery-65815b6d3a67cf07a01f28fb9ecb7bf05049754b.tar.lz
android_bootable_recovery-65815b6d3a67cf07a01f28fb9ecb7bf05049754b.tar.xz
android_bootable_recovery-65815b6d3a67cf07a01f28fb9ecb7bf05049754b.tar.zst
android_bootable_recovery-65815b6d3a67cf07a01f28fb9ecb7bf05049754b.zip
Diffstat (limited to '')
-rw-r--r--vr_ui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/vr_ui.cpp b/vr_ui.cpp
index a131a27a7..1f0292c30 100644
--- a/vr_ui.cpp
+++ b/vr_ui.cpp
@@ -34,13 +34,13 @@ int VrRecoveryUI::ScreenHeight() const {
return gr_fb_height();
}
-void VrRecoveryUI::DrawSurface(GRSurface* surface, int sx, int sy, int w, int h, int dx,
+void VrRecoveryUI::DrawSurface(const GRSurface* surface, int sx, int sy, int w, int h, int dx,
int dy) const {
gr_blit(surface, sx, sy, w, h, dx + stereo_offset_, dy);
gr_blit(surface, sx, sy, w, h, dx - stereo_offset_ + ScreenWidth(), dy);
}
-void VrRecoveryUI::DrawTextIcon(int x, int y, GRSurface* surface) const {
+void VrRecoveryUI::DrawTextIcon(int x, int y, const GRSurface* surface) const {
gr_texticon(x + stereo_offset_, y, surface);
gr_texticon(x - stereo_offset_ + ScreenWidth(), y, surface);
}