Fixed the screen sizing issue. It was just using the terminal size and not the window graphic size.

This commit is contained in:
Zed A. Shaw 2024-10-04 16:57:11 -04:00
parent 5cf66aad02
commit 6f952bfd28
3 changed files with 14 additions and 6 deletions

View file

@ -16,6 +16,13 @@
using std::string;
using ftxui::Canvas, ftxui::Component, ftxui::Screen;
constexpr int GAME_MAP_X = 60;
constexpr int GAME_MAP_Y = 30;
constexpr int SCREEN_X = 106;
constexpr int SCREEN_Y = 30;
constexpr int VIDEO_X = 1600;
constexpr int VIDEO_Y = 900;
enum class Value {
BLACK=0, DARK_DARK, DARK_MID,
DARK_LIGHT, MID, LIGHT_DARK, LIGHT_MID,