summaryrefslogtreecommitdiff
path: root/src/main/kotlin/de/romjaki/pluggabledino/states/MainMenu.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/de/romjaki/pluggabledino/states/MainMenu.kt')
-rw-r--r--src/main/kotlin/de/romjaki/pluggabledino/states/MainMenu.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/de/romjaki/pluggabledino/states/MainMenu.kt b/src/main/kotlin/de/romjaki/pluggabledino/states/MainMenu.kt
index 0d4d23b..c67b8ea 100644
--- a/src/main/kotlin/de/romjaki/pluggabledino/states/MainMenu.kt
+++ b/src/main/kotlin/de/romjaki/pluggabledino/states/MainMenu.kt
@@ -49,7 +49,7 @@ class MainMenu : BasicGameState() {
val settingsButton = Button("SETTINGS", WIDTH / 2f, HEIGHT / 2f + 100)
override fun render(container: GameContainer?, game: StateBasedGame?, g: Graphics?) {
g!!
- g.scale(1.25f,1.25f)
+ g.scale(WIDTH_RATIO, HEIGHT_RATIO)
g.background = Color.lightGray
g.drawImage(dinoAnimated.currentFrame, WIDTH / 2f - 16, HEIGHT / 2f - 16f)
playButton.draw(g)