From ba522d0b6e8172d2d9f0ee107fbb2d6499380847 Mon Sep 17 00:00:00 2001 From: nathansmith117 Date: Wed, 21 Feb 2024 10:42:07 -0700 Subject: Working on resizing thingy --- src/gameScreen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gameScreen.c') diff --git a/src/gameScreen.c b/src/gameScreen.c index 005becc..dc14bc1 100644 --- a/src/gameScreen.c +++ b/src/gameScreen.c @@ -5,8 +5,8 @@ void initGameScreen(GameScreen* gameScreen, Game* game) { Assets* assets = &game->assets; - int width = GetScreenWidth(); - int height = GetScreenHeight(); + int width = WINDOW_WIDTH; + int height = WINDOW_HEIGHT; int navigationButtonSize = 100; int navigationButtonX = width - navigationButtonSize - 5.0; @@ -33,7 +33,7 @@ void initGameScreen(GameScreen* gameScreen, Game* game) Texture* buttonTexture = &gameScreen->buttonPanelSharedAnimation.texture; int buttonWidth = width / 4; - int buttonHeight = buttonWidth / 2.0; + int buttonHeight = buttonWidth / 2; int buttonY = height - buttonHeight; gameScreen->upgradesButton = createTexturedButton( -- cgit v1.2.3