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:
cf75782
)
changed scale
author
Nils Forssén
<nilfo359@student.liu.se>
Thu, 9 Nov 2023 13:39:56 +0000
(14:39 +0100)
committer
Nils Forssén
<nilfo359@student.liu.se>
Thu, 9 Nov 2023 13:39:56 +0000
(14:39 +0100)
src/_main.cc
patch
|
blob
|
history
diff --git
a/src/_main.cc
b/src/_main.cc
index bbb35e506bdf47b3fde8fea6ebc7a90032fb132e..eef274301b7bc39ba533f57a8013c1dc99a49884 100644
(file)
--- 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())
{