From 7d9d08f57c8d604723b6452dc9ba91501b963495 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nils=20Forss=C3=A9n?= Date: Thu, 9 Nov 2023 14:39:56 +0100 Subject: [PATCH] changed scale --- src/_main.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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()) { -- 2.30.2