From f8f6311a8fd5c814a7a1e147c2116c6980956dd0 Mon Sep 17 00:00:00 2001 From: Alma Dejus Date: Mon, 11 Dec 2023 09:54:38 +0100 Subject: [PATCH] cleanup in Start_menu.cc file, Alma och Malin --- src/Start_menu.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Start_menu.cc b/src/Start_menu.cc index 390be19..73e0eb3 100644 --- a/src/Start_menu.cc +++ b/src/Start_menu.cc @@ -109,8 +109,11 @@ void Start_menu::update(Context& context) } // mouse placement - mouse_r.setPosition(((S_WIDTH / 2) + 60 - 17*(menu_index - 1)*(menu_index - 2)), ((S_HEIGHT / 2) - 120 + 50*(menu_index - 1))); - mouse_l.setPosition(((S_WIDTH / 2) - 58 + 17*(menu_index - 1)*(menu_index - 2)), ((S_HEIGHT / 2) - 120 + 50*(menu_index - 1))); + mouse_r.setPosition(((S_WIDTH/2) + 60 - 17*(menu_index-1)*(menu_index-2)), + ((S_HEIGHT / 2) - 120 + 50*(menu_index - 1))); + + mouse_l.setPosition(((S_WIDTH/2) - 58 + 17*(menu_index-1)*(menu_index-2)), + ((S_HEIGHT / 2) - 120 + 50*(menu_index - 1))); } -- 2.30.2