don't hardcode window size
This commit is contained in:
@@ -88,7 +88,7 @@ FrontendSDL::FrontendSDL() : keyboardMappings(InputMappings::defaultKeyboardMapp
|
|||||||
|
|
||||||
#ifdef PANDA3DS_ENABLE_METAL
|
#ifdef PANDA3DS_ENABLE_METAL
|
||||||
if (config.rendererType == RendererType::Metal) {
|
if (config.rendererType == RendererType::Metal) {
|
||||||
window = SDL_CreateWindow("Alber", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 400, 480, SDL_WINDOW_METAL | SDL_WINDOW_RESIZABLE);
|
window = SDL_CreateWindow("Alber", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, windowWidth, windowHeight, SDL_WINDOW_METAL | SDL_WINDOW_RESIZABLE);
|
||||||
|
|
||||||
if (window == nullptr) {
|
if (window == nullptr) {
|
||||||
Helpers::warn("Window creation failed: %s", SDL_GetError());
|
Helpers::warn("Window creation failed: %s", SDL_GetError());
|
||||||
|
|||||||
Reference in New Issue
Block a user