From 721a0c907a587b778075e8b56d58ec8a1a29e6b7 Mon Sep 17 00:00:00 2001 From: biroder <107300789+biroder@users.noreply.github.com> Date: Wed, 24 May 2023 13:59:50 +0300 Subject: [PATCH] Fix og logo offset --- src/scene/title_scene.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/scene/title_scene.rs b/src/scene/title_scene.rs index 78a4169..c29c764 100644 --- a/src/scene/title_scene.rs +++ b/src/scene/title_scene.rs @@ -461,8 +461,14 @@ impl Scene for TitleScene { if self.current_menu == CurrentMenu::MainMenu { let batch = state.texture_set.get_or_load_batch(ctx, &state.constants, "Title")?; + let logo_x_offset = if !state.settings.original_textures { + 0.0 + } else { + 20.0 + }; + batch.add_rect( - ((state.canvas_size.0 - state.constants.title.logo_rect.width() as f32) / 2.0).floor(), + ((state.canvas_size.0 - state.constants.title.logo_rect.width() as f32) / 2.0).floor() + logo_x_offset, 40.0, &state.constants.title.logo_rect, );