projects
/
pong.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44a24c6
)
getting renderer output size
author
Matthew Owens
<matthew@owens.tech>
Fri, 2 Oct 2020 10:46:25 +0000
(11:46 +0100)
committer
Matthew Owens
<matthew@owens.tech>
Fri, 2 Oct 2020 10:46:25 +0000
(11:46 +0100)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
b464d65
..
237d63c
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-224,6
+224,10
@@
int main()
//TODO: run on primary display
if(!init()) { return 1; }
+ int w, h;
+ SDL_GetRendererOutputSize(renderer, &w, &h);
+ COUT("output size: (%d, %d)", w, h);
+
while(!quit) {
update();
render();