From: Nils Forssén Date: Thu, 9 Nov 2023 13:44:22 +0000 (+0100) Subject: Chagned scale X-Git-Url: https://gitweb.forssennils.se/?a=commitdiff_plain;h=bd2d9af0c771fffc8a7252e229679a47b38e45a0;p=TDDC76_proj.git Chagned scale --- 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()) {