From: Matthew Owens <matthew@owens.tech>
Date: Fri, 2 Oct 2020 10:51:25 +0000 (+0100)
Subject: testing displaymode output
X-Git-Url: https://git.owens.tech/112-editable-focus.html/112-editable-focus.html/git?a=commitdiff_plain;h=2d73ed400fd29e96e4ebf17f94708ec4ce3e2c04;p=pong.git

testing displaymode output
---

diff --git a/src/main.c b/src/main.c
index 237d63c..5a2d9a8 100644
--- 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();