projects
/
pong.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5d8915
)
testing displaymode output
author
Matthew Owens
<matthew@owens.tech>
Fri, 2 Oct 2020 10:51:25 +0000
(11:51 +0100)
committer
Matthew Owens
<matthew@owens.tech>
Fri, 2 Oct 2020 10:51:25 +0000
(11:51 +0100)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
237d63c
..
5a2d9a8
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-225,9
+225,12
@@
int main()
if(!init()) { return 1; }
int w, h;
+ SDL_DisplayMode dm;
+ SDL_GetCurrentDisplayMode(0, &dm);
SDL_GetRendererOutputSize(renderer, &w, &h);
- COUT("output size: (%d, %d)", w, h);
-
+ COUT("renderer output size: (%d, %d)", w, h);
+ COUT("dm output size: (%d, %d)", dm.w, dm.h);
+ return 0;
while(!quit) {
update();
render();