From: Nils Forssén Date: Thu, 9 Nov 2023 13:39:56 +0000 (+0100) Subject: changed scale X-Git-Url: https://gitweb.forssennils.se/?a=commitdiff_plain;h=7d9d08f57c8d604723b6452dc9ba91501b963495;p=TDDC76_proj.git changed scale --- diff --git a/src/_main.cc b/src/_main.cc index bbb35e5..eef2743 100644 --- a/src/_main.cc +++ b/src/_main.cc @@ -8,16 +8,20 @@ using namespace sf; +static const int s_width {1600}; +static const int s_height {900}; + int main () { RenderWindow window{ - VideoMode{1920, 1080}, + VideoMode{s_width, s_height}, "DespYrat" }; Texture t; t.loadFromFile("assets/hel_bakgrund.png"); Sprite s(t); + s.setScale(0.83333, 0.83333); while (window.isOpen()) {