diff options
author | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-02-21 17:42:07 +0000 |
---|---|---|
committer | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-02-21 17:42:07 +0000 |
commit | ba522d0b6e8172d2d9f0ee107fbb2d6499380847 (patch) | |
tree | 7727c315be6e02261bd3a55a6c25901f2d327963 /src/gameScreen.c | |
parent | ecb467030530f54dfcf530132c4cd7194dc0f484 (diff) | |
download | PenguinYippies-ba522d0b6e8172d2d9f0ee107fbb2d6499380847.tar.gz PenguinYippies-ba522d0b6e8172d2d9f0ee107fbb2d6499380847.tar.bz2 PenguinYippies-ba522d0b6e8172d2d9f0ee107fbb2d6499380847.zip |
Working on resizing thingy
Diffstat (limited to 'src/gameScreen.c')
-rw-r--r-- | src/gameScreen.c | 6 |
1 files changed, 3 insertions, 3 deletions
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( |