Fixed the screen sizing issue. It was just using the terminal size and not the window graphic size.
This commit is contained in:
parent
5cf66aad02
commit
6f952bfd28
3 changed files with 14 additions and 6 deletions
7
gui.hpp
7
gui.hpp
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue