From 7a678440fab1b68000e384bb9b37b92f71a108b2 Mon Sep 17 00:00:00 2001
From: Star Rauchenberger <fefferburbia@gmail.com>
Date: Sat, 12 Mar 2022 22:51:27 -0500
Subject: 16:9 widescreen, and fullscreen is less weird now

---
 src/game.h       | 10 +++++-----
 src/main.cpp     |  2 +-
 src/renderer.cpp |  2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/game.h b/src/game.h
index c91a001..9feb774 100644
--- a/src/game.h
+++ b/src/game.h
@@ -11,13 +11,13 @@
 #include "animation.h"
 #include "interpolation.h"
 
-const int GAME_WIDTH = 640*2;
-const int GAME_HEIGHT = 480*2;
+const int GAME_WIDTH = 1280;//640*2;
+const int GAME_HEIGHT = 720;//480*2;
 const int TILE_WIDTH = 8*2;
 const int TILE_HEIGHT = TILE_WIDTH;
-const int INIT_ZOOM = 10;
-const int ZOOM_X_FACTOR = 8;
-const int ZOOM_Y_FACTOR = 6;
+const int INIT_ZOOM = 5;
+const int ZOOM_X_FACTOR = 16;
+const int ZOOM_Y_FACTOR = 9;
 const int RADIUS = 8;
 
 constexpr int TilesetIndex(int x, int y) {
diff --git a/src/main.cpp b/src/main.cpp
index 27c78ec..47c6966 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -907,7 +907,7 @@ int main(int, char**)
         tick(game, true);
 
         // TODO: better zoom algorithm
-        setZoom(game, game.litSpots / 1500 * 2 + INIT_ZOOM);
+        setZoom(game, game.litSpots / 1500 + INIT_ZOOM);
       }
 
       if (game.dirtyRender) {
diff --git a/src/renderer.cpp b/src/renderer.cpp
index 251ff96..1858520 100644
--- a/src/renderer.cpp
+++ b/src/renderer.cpp
@@ -12,7 +12,7 @@ Renderer::Renderer()
       GAME_HEIGHT,
       SDL_WINDOW_SHOWN));
 
-  SDL_SetWindowFullscreen(win_.get(), SDL_WINDOW_FULLSCREEN);
+  SDL_SetWindowFullscreen(win_.get(), SDL_WINDOW_FULLSCREEN_DESKTOP);
 
   if (!win_)
   {
-- 
cgit 1.4.1