diff --git a/cooperative_cuisine/pygame_2d_vis/gui.py b/cooperative_cuisine/pygame_2d_vis/gui.py index 0e75609759f783809e42d45a90f77bf370ee8841..c58c36a230cd21cf3631ba3a5fc212726afd045b 100644 --- a/cooperative_cuisine/pygame_2d_vis/gui.py +++ b/cooperative_cuisine/pygame_2d_vis/gui.py @@ -652,9 +652,14 @@ class PyGameGUI: ROOT_DIR / "pygame_2d_vis" / "gui_images" / "controls_en.png" ).convert_alpha() image_rect = image.get_rect() - img_width = self.window_width * 0.68 - img_height = img_width * (image_rect.height / image_rect.width) + + # img_width = self.window_width * 0.68 + # img_height = img_width * (image_rect.height / image_rect.width) + img_height = self.window_height * 0.95 + img_width = img_height * (image_rect.width / image_rect.height) + new_dims = (img_width, img_height) + image = pygame.transform.smoothscale(image, new_dims) image_rect = image.get_rect() image_rect.left = self.elements_margin