summary refs log tree commit diff
path: root/sol.c
diff options
context:
space:
mode:
Diffstat (limited to 'sol.c')
-rw-r--r--sol.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/sol.c b/sol.c
index c0882ac..930eda6 100644
--- a/sol.c
+++ b/sol.c
@@ -431,19 +431,10 @@ int main(void) {
 		&window, &render
 	);
 	if (error) err("SDL_CreateWindowAndRenderer");
-
 	SDL_SetWindowTitle(window, "Solitaire");
 
-	int width, height;
-	SDL_GetRendererOutputSize(render, &width, &height);
-	if (width > WindowWidth && height > WindowHeight) {
-		SDL_RenderSetIntegerScale(render, SDL_TRUE);
-		SDL_RenderSetScale(
-			render,
-			(float)width / WindowWidth,
-			(float)height / WindowHeight
-		);
-	}
+	SDL_RenderSetIntegerScale(render, SDL_TRUE);
+	SDL_RenderSetLogicalSize(render, WindowWidth, WindowHeight);
 
 	for (uint i = 0; i < Cards_Count; ++i) {
 		textures[i] = NULL;