From bd2d9af0c771fffc8a7252e229679a47b38e45a0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nils=20Forss=C3=A9n?= Date: Thu, 9 Nov 2023 14:44:22 +0100 Subject: [PATCH] Chagned scale --- src/_main.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/_main.cc b/src/_main.cc index eef2743..b77518e 100644 --- a/src/_main.cc +++ b/src/_main.cc @@ -8,8 +8,10 @@ using namespace sf; -static const int s_width {1600}; -static const int s_height {900}; +static const int s_width {1280}; +static const int s_height {720}; + +static const int scale_koeff {s_width / 1920}; int main () { @@ -21,7 +23,7 @@ int main () Texture t; t.loadFromFile("assets/hel_bakgrund.png"); Sprite s(t); - s.setScale(0.83333, 0.83333); + s.setScale(0.6666667, 0.6666667); while (window.isOpen()) { -- 2.30.2