chore: make window dimensions a constant
This commit is contained in:
@@ -39,6 +39,13 @@ namespace yaze {
|
|||||||
namespace app {
|
namespace app {
|
||||||
namespace core {
|
namespace core {
|
||||||
|
|
||||||
|
//===========================================================================================
|
||||||
|
// Window Variables
|
||||||
|
//===========================================================================================
|
||||||
|
|
||||||
|
constexpr int kScreenWidth = 1200;
|
||||||
|
constexpr int kScreenHeight = 800;
|
||||||
|
|
||||||
//===========================================================================================
|
//===========================================================================================
|
||||||
// 65816 LanguageDefinition
|
// 65816 LanguageDefinition
|
||||||
//===========================================================================================
|
//===========================================================================================
|
||||||
|
|||||||
@@ -154,8 +154,8 @@ absl::Status Controller::CreateWindow() {
|
|||||||
SDL_CreateWindow("Yet Another Zelda3 Editor", // window title
|
SDL_CreateWindow("Yet Another Zelda3 Editor", // window title
|
||||||
SDL_WINDOWPOS_UNDEFINED, // initial x position
|
SDL_WINDOWPOS_UNDEFINED, // initial x position
|
||||||
SDL_WINDOWPOS_UNDEFINED, // initial y position
|
SDL_WINDOWPOS_UNDEFINED, // initial y position
|
||||||
1200, // width, in pixels
|
kScreenWidth, // width, in pixels
|
||||||
800, // height, in pixels
|
kScreenHeight, // height, in pixels
|
||||||
SDL_WINDOW_RESIZABLE | SDL_WINDOW_OPENGL),
|
SDL_WINDOW_RESIZABLE | SDL_WINDOW_OPENGL),
|
||||||
sdl_deleter());
|
sdl_deleter());
|
||||||
if (window_ == nullptr) {
|
if (window_ == nullptr) {
|
||||||
|
|||||||
Reference in New Issue
Block a user