projects
/
TDDC76_proj.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d9d08f
)
Chagned scale
author
Nils Forssén
<nilfo359@student.liu.se>
Thu, 9 Nov 2023 13:44:22 +0000
(14:44 +0100)
committer
Nils Forssén
<nilfo359@student.liu.se>
Thu, 9 Nov 2023 13:44:22 +0000
(14:44 +0100)
src/_main.cc
patch
|
blob
|
history
diff --git
a/src/_main.cc
b/src/_main.cc
index eef274301b7bc39ba533f57a8013c1dc99a49884..b77518e5cd9eb77cd8d1106915b4cfec5f0dcbf0 100644
(file)
--- 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())
{