From a1bdf1ec14bc943b279c0be046345818f1042fc7 Mon Sep 17 00:00:00 2001 From: biroder <107300789+biroder@users.noreply.github.com> Date: Tue, 28 Mar 2023 13:48:03 +0300 Subject: [PATCH] Make changing volume arrows to display on Android only --- src/menu/mod.rs | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/src/menu/mod.rs b/src/menu/mod.rs index a15830b..0495ae9 100644 --- a/src/menu/mod.rs +++ b/src/menu/mod.rs @@ -595,21 +595,23 @@ impl Menu { graphics::draw_rect(ctx, bar_rect, Color::new(1.0, 1.0, 1.0, 1.0))?; } - - state - .font - .builder() - .x(self.x as f32 - 25.0) - .y(y) - .shadow(true) - .draw("<", ctx, &state.constants, &mut state.texture_set)?; - state - .font - .builder() - .x((self.x + self.width as isize) as f32 + 15.0) - .y(y) - .shadow(true) - .draw(">", ctx, &state.constants, &mut state.texture_set)?; + #[cfg(target_os = "android")] + { + state + .font + .builder() + .x(self.x as f32 - 25.0) + .y(y) + .shadow(true) + .draw("<", ctx, &state.constants, &mut state.texture_set)?; + state + .font + .builder() + .x((self.x + self.width as isize) as f32 + 15.0) + .y(y) + .shadow(true) + .draw(">", ctx, &state.constants, &mut state.texture_set)?; + } } MenuEntry::NewSave => { state.font.builder().position(self.x as f32 + 20.0, y).draw(