This commit is contained in:
2025-12-13 23:40:15 -05:00
parent ee89d8880d
commit ffed82a591
2 changed files with 4 additions and 2 deletions

View File

@@ -23,6 +23,7 @@ namespace anm2ed
{
constexpr auto WINDOW_4K_SIZE = glm::ivec2(3840, 2160);
constexpr auto UI_SCALE_4K_DEFAULT = 1.5f;
constexpr auto WINDOW_DEFAULT_SIZE_MULTIPLIER = 0.90f;
constexpr auto SOCKET_ADDRESS = "127.0.0.1";
constexpr auto SOCKET_PORT = 11414;
@@ -141,7 +142,8 @@ namespace anm2ed
if (auto mode = SDL_GetCurrentDisplayMode(display))
{
if (mode->w >= WINDOW_4K_SIZE.x || mode->h >= WINDOW_4K_SIZE.y) settings.uiScale = UI_SCALE_4K_DEFAULT;
SDL_SetWindowSize(window, mode->w - 1, mode->h - 1);
settings.windowSize.x = mode->w * WINDOW_DEFAULT_SIZE_MULTIPLIER;
settings.windowSize.y = mode->h * WINDOW_DEFAULT_SIZE_MULTIPLIER;
}
else
logger.warning(std::format("Failed to query primary display mode: {}", SDL_GetError()));

View File

@@ -40,6 +40,6 @@ Alternatively, if you have subscribed to the mod, you can find the latest releas
[h3]Happy animating![/h3]
[img]https://files.catbox.moe/4auc1c.gif[/img]
</description>
<version>2.7</version>
<version>2.8</version>
<visibility>Public</visibility>
</metadata>