diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-10-24 02:28:21 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-10-24 02:28:21 +0200 |
commit | 47b650b588ba629e9c54a7e108e313bb0c400043 (patch) | |
tree | c61ef3a9fd062733e2f24b27146ba2a474798c91 /vr_ui.cpp | |
parent | Merge "Add a function to construct the GRSurface in test" (diff) | |
parent | ui: Add constness to Draw- functions. (diff) | |
download | android_bootable_recovery-47b650b588ba629e9c54a7e108e313bb0c400043.tar android_bootable_recovery-47b650b588ba629e9c54a7e108e313bb0c400043.tar.gz android_bootable_recovery-47b650b588ba629e9c54a7e108e313bb0c400043.tar.bz2 android_bootable_recovery-47b650b588ba629e9c54a7e108e313bb0c400043.tar.lz android_bootable_recovery-47b650b588ba629e9c54a7e108e313bb0c400043.tar.xz android_bootable_recovery-47b650b588ba629e9c54a7e108e313bb0c400043.tar.zst android_bootable_recovery-47b650b588ba629e9c54a7e108e313bb0c400043.zip |
Diffstat (limited to 'vr_ui.cpp')
-rw-r--r-- | vr_ui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |